Sha256: 08d15016a2f3f01d9427ab137cfff7987a9b7e1e59e71e4eaf1c85aa148e31c0
Contents?: true
Size: 461 Bytes
Versions: 34
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: 'TERM' def run result = shell("killall -#{options.signal} #{options.process_name}") true # shell will capture any errors end end end
Version data entries
34 entries across 34 versions & 1 rubygems