Class: Stable::Commands::Stop
- Inherits:
-
Object
- Object
- Stable::Commands::Stop
- Defined in:
- lib/stable/commands/stop.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name) ⇒ Stop
constructor
A new instance of Stop.
Constructor Details
#initialize(name) ⇒ Stop
Returns a new instance of Stop.
6 7 8 |
# File 'lib/stable/commands/stop.rb', line 6 def initialize(name) @name = name end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/stable/commands/stop.rb', line 10 def call Services::AppStopper.new(@name).call end |