Sha256: 3da36113450d698715266ab31c9d594af1f9ed337adb6f3cb255d190187500d3

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

module Perus::Pinger
    class UpstartStart < Command
        description 'Start 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 start #{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_start.rb
perus-0.1.7 lib/perus/pinger/commands/upstart_start.rb