Class: Flydata::Helper::Action::StopHelper

Inherits:
BaseAction
  • Object
show all
Defined in:
lib/flydata/helper/action/stop_helper.rb

Instance Attribute Summary

Attributes inherited from BaseAction

#config

Instance Method Summary collapse

Methods inherited from BaseAction

#config_hash, #initialize

Constructor Details

This class inherits a constructor from Flydata::Helper::BaseAction

Instance Method Details

#execute(opts = {}) ⇒ Object



9
10
11
# File 'lib/flydata/helper/action/stop_helper.rb', line 9

def execute(opts = {})
  Process.kill(:TERM, Process.ppid)
end