Class: NeetoDeploy::CLI::Login::Base

Inherits:
Base
  • Object
show all
Includes:
Constants
Defined in:
lib/neeto_deploy/cli/login/base.rb

Constant Summary

Constants included from Constants

Constants::LOGIN_STATUS_CHECK_INTERVAL_SECONDS, Constants::NEETO_DEPLOY_CLI_API_SESSIONS_URL

Instance Attribute Summary collapse

Attributes inherited from Base

#ui

Instance Method Summary collapse

Methods included from Constants

#session_create_url, #session_login_status_url, #session_login_url

Methods inherited from Base

#create_config_dir, #initialize

Constructor Details

This class inherits a constructor from NeetoDeploy::CLI::Base

Instance Attribute Details

#login_tokenObject

Returns the value of attribute login_token.



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

def 
  @login_token
end

#org_subdomainObject

Returns the value of attribute org_subdomain.



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

def org_subdomain
  @org_subdomain
end

Instance Method Details

#process!Object



17
18
19
20
21
22
# File 'lib/neeto_deploy/cli/login/base.rb', line 17

def process!
  init_session
  ask_for_org_subdomain
  
  wait_until_user_authenticates!
end