Class: Stable::Commands::Stop

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

Overview

Stop command - stops a Rails application

Instance Method Summary collapse

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

#callObject



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

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