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