Sha256: ff5ac05db2d16dcc7c0fd54675904b691c44d950ba145b96aa7716c70a96dee4

Contents?: true

Size: 444 Bytes

Versions: 62

Compression:

Stored size: 444 Bytes

Contents

module Serverspec
  module Commands
    class Gentoo < Linux
      def check_enabled(service, level=3)
        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

62 entries across 62 versions & 1 rubygems

Version Path
serverspec-0.10.0 lib/serverspec/commands/gentoo.rb
serverspec-0.9.8 lib/serverspec/commands/gentoo.rb
serverspec-0.9.7 lib/serverspec/commands/gentoo.rb
serverspec-0.9.6 lib/serverspec/commands/gentoo.rb
serverspec-0.9.5 lib/serverspec/commands/gentoo.rb
serverspec-0.9.4 lib/serverspec/commands/gentoo.rb
serverspec-0.9.3 lib/serverspec/commands/gentoo.rb
serverspec-0.9.2 lib/serverspec/commands/gentoo.rb
serverspec-0.9.1 lib/serverspec/commands/gentoo.rb
serverspec-0.9.0 lib/serverspec/commands/gentoo.rb
serverspec-0.8.1 lib/serverspec/commands/gentoo.rb
serverspec-0.8.0 lib/serverspec/commands/gentoo.rb
serverspec-0.7.13 lib/serverspec/commands/gentoo.rb
serverspec-0.7.12 lib/serverspec/commands/gentoo.rb
serverspec-0.7.11 lib/serverspec/commands/gentoo.rb
serverspec-0.7.10 lib/serverspec/commands/gentoo.rb
serverspec-0.7.9 lib/serverspec/commands/gentoo.rb
serverspec-0.7.8 lib/serverspec/commands/gentoo.rb
serverspec-0.7.7 lib/serverspec/commands/gentoo.rb
serverspec-0.7.6 lib/serverspec/commands/gentoo.rb