Sha256: e1f74a47a86fbd81e3678b1d172bf038748fa57debd2f1b17ffc46ca5e637320

Contents?: true

Size: 461 Bytes

Versions: 176

Compression:

Stored size: 461 Bytes

Contents

class Specinfra::Command::Openbsd::Base::Service < Specinfra::Command::Base::Service
  class << self
    def create(os_info=nil)
      if (os_info || os)[:release].to_f < 5.7
        self
      else
        Specinfra::Command::Openbsd::V57::Service
      end
    end

    def check_is_enabled(service, level=nil)
      "/etc/rc.d/#{escape(service)} status"
    end

    def check_is_running(service)
      "/etc/rc.d/#{escape(service)} check"
    end
  end
end

Version data entries

176 entries across 176 versions & 2 rubygems

Version Path
specinfra-2.66.7 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.66.6 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.66.5 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.66.4 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.66.3 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.66.2 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.66.1 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.66.0 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.65.0 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.64.0 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.63.3 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.63.2 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.63.1 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.63.0 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.62.0 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.61.3 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.61.2 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.61.1 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.61.0 lib/specinfra/command/openbsd/base/service.rb
specinfra-2.60.4 lib/specinfra/command/openbsd/base/service.rb