Class: NeetoDeploy::CLI::Logs::Base
- Defined in:
- lib/neeto_deploy/cli/logs/base.rb
Constant Summary
Constants included from Session
Constants included from Constants
Constants::NEETO_DEPLOY_CLI_API_ENVIRONMENT_VARIABLES_URL
Instance Attribute Summary collapse
-
#app_slug ⇒ Object
readonly
Returns the value of attribute app_slug.
-
#process_type ⇒ Object
readonly
Returns the value of attribute process_type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(app_slug, process_type = nil) ⇒ Base
constructor
A new instance of Base.
- #process! ⇒ Object
Methods included from Session
#common_body, #console_executable_name, #headers, #os, require_app_option, #send_delete_request, #send_get_request, #send_patch_request, #send_post_request, #session_token
Methods included from Constants
Methods inherited from Base
Constructor Details
#initialize(app_slug, process_type = nil) ⇒ Base
Returns a new instance of Base.
20 21 22 23 24 25 |
# File 'lib/neeto_deploy/cli/logs/base.rb', line 20 def initialize(app_slug, process_type = nil) super() @app_slug = app_slug @process_type = process_type @log_client = nil end |
Instance Attribute Details
#app_slug ⇒ Object (readonly)
Returns the value of attribute app_slug.
18 19 20 |
# File 'lib/neeto_deploy/cli/logs/base.rb', line 18 def app_slug @app_slug end |
#process_type ⇒ Object (readonly)
Returns the value of attribute process_type.
18 19 20 |
# File 'lib/neeto_deploy/cli/logs/base.rb', line 18 def process_type @process_type end |
Instance Method Details
#process! ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/neeto_deploy/cli/logs/base.rb', line 27 def process! start_spinner response = authenticate_user return unless response.success? log_params = JSON[response.body] @log_client = cloud_watch_client(log_params) start_log_streaming(log_params) end |