Class: Headsail::Launcher
- Inherits:
-
Object
- Object
- Headsail::Launcher
- Defined in:
- lib/headsail/launcher.rb
Overview
Determines the action to be taken based on the Configure object
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(configure) ⇒ Launcher
constructor
A new instance of Launcher.
- #run ⇒ Object
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/headsail/launcher.rb', line 7 def client @client end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 |
# File 'lib/headsail/launcher.rb', line 13 def run case when @configure.start_client start_client end end |