Class: NeetoDeploy::CLI::DynoConsoleManager

Inherits:
Base
  • Object
show all
Defined in:
lib/neeto_deploy/cli/dyno_console_manager.rb

Direct Known Subclasses

Pg::Console, Redis::Console

Instance Attribute Summary collapse

Attributes inherited from Base

#ui

Instance Method Summary collapse

Methods inherited from Base

#create_config_dir

Constructor Details

#initialize(addon_name) ⇒ DynoConsoleManager

Returns a new instance of DynoConsoleManager.



10
11
12
13
# File 'lib/neeto_deploy/cli/dyno_console_manager.rb', line 10

def initialize(addon_name)
  super()
  @addon_name = addon_name
end

Instance Attribute Details

#addon_nameObject (readonly)

Returns the value of attribute addon_name.



8
9
10
# File 'lib/neeto_deploy/cli/dyno_console_manager.rb', line 8

def addon_name
  @addon_name
end

#kindObject (readonly)

Returns the value of attribute kind.



8
9
10
# File 'lib/neeto_deploy/cli/dyno_console_manager.rb', line 8

def kind
  @kind
end

Instance Method Details

#process!Object



15
16
17
18
19
20
21
22
# File 'lib/neeto_deploy/cli/dyno_console_manager.rb', line 15

def process!
  start_spinner
  send_console_session_request
  ui.error("\n#{@response.body}") and return unless @response.success?

  start_console
  connection_cleanup_callback
end