Sha256: 055c356f443c95c274c03d0f2e1986d5be0961d3fd255c9134e013fe5711a8d0
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module Perus::Pinger class KillProcess < Command description 'Kills all instances of a process. Valid values for "process_name" are contained in the pinger config file.' option :process_name, restricted: true option :signal, default: 'KILL' def run result = shell("killall -#{options.signal} #{options.process_name}") true # shell will capture any errors end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
perus-0.1.9 | lib/perus/pinger/commands/kill_process.rb |