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