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

Version Path
perus-0.1.23 lib/perus/pinger/commands/service_stop.rb
perus-0.1.22 lib/perus/pinger/commands/service_stop.rb
perus-0.1.21 lib/perus/pinger/commands/service_stop.rb
perus-0.1.20 lib/perus/pinger/commands/service_stop.rb
perus-0.1.19 lib/perus/pinger/commands/service_stop.rb
perus-0.1.18 lib/perus/pinger/commands/service_stop.rb
perus-0.1.17 lib/perus/pinger/commands/service_stop.rb
perus-0.1.16 lib/perus/pinger/commands/service_stop.rb
perus-0.1.15 lib/perus/pinger/commands/service_stop.rb
perus-0.1.14 lib/perus/pinger/commands/service_stop.rb
perus-0.1.13 lib/perus/pinger/commands/service_stop.rb
perus-0.1.12 lib/perus/pinger/commands/service_stop.rb
perus-0.1.11 lib/perus/pinger/commands/service_stop.rb
perus-0.1.10 lib/perus/pinger/commands/service_stop.rb
perus-0.1.9 lib/perus/pinger/commands/service_stop.rb