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-1.0.7 lib/perus/pinger/commands/service_stop.rb
perus-1.0.6 lib/perus/pinger/commands/service_stop.rb
perus-1.0.5 lib/perus/pinger/commands/service_stop.rb
perus-1.0.4 lib/perus/pinger/commands/service_stop.rb
perus-1.0.3 lib/perus/pinger/commands/service_stop.rb
perus-1.0.2 lib/perus/pinger/commands/service_stop.rb
perus-1.0.1 lib/perus/pinger/commands/service_stop.rb
perus-1.0.0 lib/perus/pinger/commands/service_stop.rb
perus-0.1.35 lib/perus/pinger/commands/service_stop.rb
perus-0.1.34 lib/perus/pinger/commands/service_stop.rb
perus-0.1.33 lib/perus/pinger/commands/service_stop.rb
perus-0.1.32 lib/perus/pinger/commands/service_stop.rb
perus-0.1.31 lib/perus/pinger/commands/service_stop.rb
perus-0.1.30 lib/perus/pinger/commands/service_stop.rb
perus-0.1.29 lib/perus/pinger/commands/service_stop.rb
perus-0.1.28 lib/perus/pinger/commands/service_stop.rb
perus-0.1.27 lib/perus/pinger/commands/service_stop.rb
perus-0.1.26 lib/perus/pinger/commands/service_stop.rb
perus-0.1.25 lib/perus/pinger/commands/service_stop.rb
perus-0.1.24 lib/perus/pinger/commands/service_stop.rb