Class: NeetoDeploy::CLI::Exec::Base
- Defined in:
- lib/neeto_deploy/cli/exec/base.rb
Constant Summary
Constants included from Session
Constants included from Constants
Constants::NEETO_DEPLOY_CLI_API_CONSOLE_SESSION_BASE_URL
Instance Attribute Summary collapse
-
#app_name ⇒ Object
readonly
Returns the value of attribute app_name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(app_name) ⇒ Base
constructor
A new instance of Base.
- #process! ⇒ Object
Methods included from Session
#auth_headers, #console_executable_name, #json_auth_headers, #os, require_app_option, #send_delete_request, #send_get_request, #send_patch_request, #send_post_request
Methods included from Constants
Methods inherited from Base
Constructor Details
#initialize(app_name) ⇒ Base
Returns a new instance of Base.
21 22 23 24 |
# File 'lib/neeto_deploy/cli/exec/base.rb', line 21 def initialize(app_name) super() @app_name = app_name end |
Instance Attribute Details
#app_name ⇒ Object (readonly)
Returns the value of attribute app_name.
19 20 21 |
# File 'lib/neeto_deploy/cli/exec/base.rb', line 19 def app_name @app_name end |
Instance Method Details
#process! ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/neeto_deploy/cli/exec/base.rb', line 26 def process! start_spinner send_console_session_request ui.error(@response["error"] || @response.) and return unless @response.success? start_console print_session_end connection_cleanup_callback end |