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

Instance Method Details

#session_create_urlObject



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_urlObject



19
20
21
# File 'lib/neeto_deploy/cli/login/constants.rb', line 19

def 
  "#{NEETO_DEPLOY_CLI_API_BASE_URL}/sessions/#{}/status"
end

#session_login_url(org_subdomain) ⇒ Object



14
15
16
17
# File 'lib/neeto_deploy/cli/login/constants.rb', line 14

def (org_subdomain)
  org_url = NEETO_DEPLOY_HOST.sub("app.", "#{org_subdomain}.")
  "#{org_url}/admin/cli/login?token=#{}"
end