Sha256: 77c3ec4ab36a5fb5b2d12f992084a8c52282545e0ce66766e2aa255e57d9785d

Contents?: true

Size: 341 Bytes

Versions: 9

Compression:

Stored size: 341 Bytes

Contents

class Specinfra::Command::Gentoo::Base::Service < Specinfra::Command::Linux::Base::Service
  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







Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta14 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta13 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta12 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta11 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta10 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta9 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta8 lib/specinfra/command/gentoo/base/service.rb
specinfra-2.0.0.beta7 lib/specinfra/command/gentoo/base/service.rb