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.12.0 lib/serverspec/commands/gentoo.rb
serverspec-0.11.5 lib/serverspec/commands/gentoo.rb
serverspec-0.11.4 lib/serverspec/commands/gentoo.rb
serverspec-0.11.3 lib/serverspec/commands/gentoo.rb
serverspec-0.11.2 lib/serverspec/commands/gentoo.rb
serverspec-0.11.1 lib/serverspec/commands/gentoo.rb
serverspec-0.11.0 lib/serverspec/commands/gentoo.rb
serverspec-0.10.13 lib/serverspec/commands/gentoo.rb
serverspec-0.10.12 lib/serverspec/commands/gentoo.rb
serverspec-0.10.11 lib/serverspec/commands/gentoo.rb
serverspec-0.10.10 lib/serverspec/commands/gentoo.rb
serverspec-0.10.9 lib/serverspec/commands/gentoo.rb
serverspec-0.10.8 lib/serverspec/commands/gentoo.rb
serverspec-0.10.7 lib/serverspec/commands/gentoo.rb
serverspec-0.10.6 lib/serverspec/commands/gentoo.rb
serverspec-0.10.5 lib/serverspec/commands/gentoo.rb
serverspec-0.10.4 lib/serverspec/commands/gentoo.rb
serverspec-0.10.3 lib/serverspec/commands/gentoo.rb
serverspec-0.10.2 lib/serverspec/commands/gentoo.rb
serverspec-0.10.1 lib/serverspec/commands/gentoo.rb