Sha256: 6cb22e5ec4c5ff40f62d38477fa6790513f69253c5a5d12a1ea59287bc1fff4b

Contents?: true

Size: 343 Bytes

Versions: 20

Compression:

Stored size: 343 Bytes

Contents

class Specinfra::Command::Debian::Base::Service < Specinfra::Command::Linux::Base::Service
  class << self
    def check_is_enabled(service, level=3)
      # Until everything uses Upstart, this needs an OR.
      "ls /etc/rc#{level}.d/ | grep -- '^S..#{escape(service)}' || grep 'start on' /etc/init/#{escape(service)}.conf"
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta35 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta34 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta33 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta32 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta31 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta30 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta29 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta28 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta27 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta26 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta25 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta24 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta23 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta22 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta21 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta20 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta19 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta18 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta17 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta16 lib/specinfra/command/debian/base/service.rb