Sha256: 001e19ed572c2fe19502eaf4855fc0791b1eb6f41f3ed5b61c315172e640f479

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 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 #{option.job} stop")
            true # shell will capture any errors
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
perus-0.1.8 lib/perus/pinger/commands/service_stop.rb