Sha256: a9b9c66cef16db1d85ce293700748d2711bf8f17439fb5498b27c064e447f6a2
Contents?: true
Size: 391 Bytes
Versions: 35
Compression:
Stored size: 391 Bytes
Contents
module Perus::Pinger class ServiceStop < Command description 'Stop the init job specified with "job". Valid values for "job" are contained in the pinger config file.' option :job, restricted: true def run result = shell("sudo service #{options.job} stop") true # shell will capture any errors end end end
Version data entries
35 entries across 35 versions & 1 rubygems