Sha256: 98dceebfecd490c72e730b8cd5ac904bd39ee1828bbbaf0c1fb096216844e1a6

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

module Serverspec
  module Commands
    class Gentoo < Linux
      def check_enabled(service)
        regexp = "^\\s*#{service}\\s*|\\s*\\(boot\\|default\\)"
        "rc-update show | grep -- #{escape(regexp)}"
      end

      def check_installed(package, version=nil)
        "eix #{escape(package)} --installed"
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.6.12 lib/serverspec/commands/gentoo.rb
serverspec-0.6.11 lib/serverspec/commands/gentoo.rb
serverspec-0.6.10 lib/serverspec/commands/gentoo.rb
serverspec-0.6.9 lib/serverspec/commands/gentoo.rb
serverspec-0.6.8 lib/serverspec/commands/gentoo.rb