Class: SesProxy::StopCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/ses_proxy/main_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



154
155
156
157
158
159
160
161
# File 'lib/ses_proxy/main_command.rb', line 154

def execute
  options = {:app_name => "ses_proxy", :dir_mode=>:normal, :dir=>pid_dir, :multiple=>true}
  group = Daemons::ApplicationGroup.new('ses_proxy', options)
  group.setup
  group.applications.each do |application|
    application.stop
  end
end