Sha256: 5f448f824b018458242ce199aa4b5883bb888bc6610873fb671d7d2945c3539a

Contents?: true

Size: 377 Bytes

Versions: 57

Compression:

Stored size: 377 Bytes

Contents

class Specinfra::Command::Gentoo::Base::Service < Specinfra::Command::Linux::Base::Service
  class << self
    def check_is_enabled(service, level=3)
      regexp = "^\\s*#{service}\\s*|\\s*\\(boot\\|default\\)"
      "rc-update show | grep -- #{escape(regexp)}"
    end

    def check_is_running(service)
      "/etc/init.d/#{escape(service)} status"
    end
  end
end







Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
specinfra-2.4.4 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.4.3 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.4.2 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.4.1 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.4.0 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.3.2 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.3.1 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.3.0 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.2.4 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.2.3 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.2.2 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.2.1 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.2.0 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.1.1 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.1.0 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.4 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.3 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.2 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.1 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0 lib/specinfra/command/gentoo/base/service.rb