Class: Stable::Commands::Stop
- Inherits:
-
Object
- Object
- Stable::Commands::Stop
- Defined in:
- lib/stable/commands/stop.rb
Overview
Stop command - stops a Rails application
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.
7 8 9 |
# File 'lib/stable/commands/stop.rb', line 7 def initialize(name) @name = name end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/stable/commands/stop.rb', line 11 def call Services::AppStopper.new(@name).call end |