Class: ProconBypassMan::RemoteAction::RemotePbmJob::StopPbmJob

Inherits:
BaseAction
  • Object
show all
Defined in:
lib/procon_bypass_man/remote_action/remote_pbm_job/stop_pbm_action.rb

Instance Attribute Summary

Attributes inherited from BaseAction

#pbm_job_uuid

Instance Method Summary collapse

Methods inherited from BaseAction

#initialize, #run!

Constructor Details

This class inherits a constructor from ProconBypassMan::RemoteAction::RemotePbmJob::BaseAction

Instance Method Details

#action_content(_args) ⇒ Object



6
7
8
9
# File 'lib/procon_bypass_man/remote_action/remote_pbm_job/stop_pbm_action.rb', line 6

def action_content(_args)
  ProconBypassMan.logger.info "execute StopPbmJob!"
  Process.kill("TERM", ProconBypassMan.pid)
end