Sha256: bc193942e49aad04d0ee9b7c495130f7e6c0e08140cf68410b130b3a9843ece2

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

module Perus::Pinger
    class ServiceStart < Command
        description 'Start 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} start")
            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_start.rb