Module: NeetoDeploy::CLI::Login::Constants
- Included in:
- Base
- Defined in:
- lib/neeto_deploy/cli/login/constants.rb
Constant Summary collapse
- NEETO_DEPLOY_CLI_API_SESSIONS_URL =
"#{NEETO_DEPLOY_CLI_API_BASE_URL}/sessions".freeze
- LOGIN_STATUS_CHECK_INTERVAL_SECONDS =
2
Instance Method Summary collapse
- #session_create_url ⇒ Object
- #session_login_status_url ⇒ Object
- #session_login_url(org_subdomain) ⇒ Object
Instance Method Details
#session_create_url ⇒ Object
10 11 12 |
# File 'lib/neeto_deploy/cli/login/constants.rb', line 10 def session_create_url NEETO_DEPLOY_CLI_API_SESSIONS_URL end |
#session_login_status_url ⇒ Object
19 20 21 |
# File 'lib/neeto_deploy/cli/login/constants.rb', line 19 def session_login_status_url "#{NEETO_DEPLOY_CLI_API_BASE_URL}/sessions/#{login_token}/status" end |
#session_login_url(org_subdomain) ⇒ Object
14 15 16 17 |
# File 'lib/neeto_deploy/cli/login/constants.rb', line 14 def session_login_url(org_subdomain) org_url = NEETO_DEPLOY_HOST.sub("app.", "#{org_subdomain}.") "#{org_url}/admin/cli/login?token=#{login_token}" end |