Sha256: 28854ace039e6fb082b625e8d4b7e3201ede4f24e68c1bc818801ea004f6b77f

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

module Perus::Pinger
    class UpstartStop < Command
        description 'Stop the upstart job specified with "job". Valid values
                     for "job" are contained in the pinger config file.'
        option :job, restricted: true

        def run
            result = shell("sudo stop #{option.job}")
            true # shell will capture any errors
        end
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
perus-0.1.8 lib/perus/pinger/commands/upstart_stop.rb
perus-0.1.7 lib/perus/pinger/commands/upstart_stop.rb