Class: NeetoDeploy::CLI::Logs::Base

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

Constant Summary

Constants included from Constants

Constants::NEETO_DEPLOY_CLI_API_ENVIRONMENT_VARIABLES_URL

Instance Attribute Summary collapse

Attributes inherited from Base

#ui

Instance Method Summary collapse

Methods included from Session

#common_body, require_app_option, #send_delete_request, #send_get_request, #send_patch_request, #send_post_request

Methods included from Constants

#app_verify_access_url

Methods inherited from Base

#create_config_dir

Constructor Details

#initialize(app_slug, process_type = nil) ⇒ Base

Returns a new instance of Base.



19
20
21
22
23
# File 'lib/neeto_deploy/cli/logs/base.rb', line 19

def initialize(app_slug, process_type = nil)
  super()
  @app_slug = app_slug
  @process_type = process_type
end

Instance Attribute Details

#app_slugObject (readonly)

Returns the value of attribute app_slug.



17
18
19
# File 'lib/neeto_deploy/cli/logs/base.rb', line 17

def app_slug
  @app_slug
end

#process_typeObject (readonly)

Returns the value of attribute process_type.



17
18
19
# File 'lib/neeto_deploy/cli/logs/base.rb', line 17

def process_type
  @process_type
end

Instance Method Details

#process!Object



25
26
27
# File 'lib/neeto_deploy/cli/logs/base.rb', line 25

def process!
  stream_logs
end