Class: Headsail::Launcher

Inherits:
Object
  • Object
show all
Defined in:
lib/headsail/launcher.rb

Overview

Determines the action to be taken based on the Configure object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configure) ⇒ Launcher

Returns a new instance of Launcher.



9
10
11
# File 'lib/headsail/launcher.rb', line 9

def initialize(configure)
  @configure = configure
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



7
8
9
# File 'lib/headsail/launcher.rb', line 7

def client
  @client
end

Instance Method Details

#runObject



13
14
15
16
17
18
# File 'lib/headsail/launcher.rb', line 13

def run
  case
  when @configure.start_client
    start_client
  end
end