Class: Stable::Commands::Restart

Inherits:
Object
  • Object
show all
Defined in:
lib/stable/commands/restart.rb

Overview

Restart command - restarts a Rails application

Instance Method Summary collapse

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

#callObject



11
12
13
# File 'lib/stable/commands/restart.rb', line 11

def call
  Services::AppRestarter.new(@name).call
end