Sha256: c44d43a1afc8ac336fcbb900530bb005f76988489e1fe0943c70b2dce918da24

Contents?: true

Size: 296 Bytes

Versions: 40

Compression:

Stored size: 296 Bytes

Contents

module Serverspec
  module Commands
    class Gentoo < Base
      def check_enabled service
        "/sbin/rc-update show | grep '^\\s*#{service}\\s*|\\s*\\(boot\\|default\\)'"
      end

      def check_installed package
        "/usr/bin/eix #{package} --installed"
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
serverspec-0.2.18 lib/serverspec/commands/gentoo.rb
serverspec-0.2.17 lib/serverspec/commands/gentoo.rb
serverspec-0.2.16 lib/serverspec/commands/gentoo.rb
serverspec-0.2.15 lib/serverspec/commands/gentoo.rb
serverspec-0.2.14 lib/serverspec/commands/gentoo.rb
serverspec-0.2.13 lib/serverspec/commands/gentoo.rb
serverspec-0.2.12 lib/serverspec/commands/gentoo.rb
serverspec-0.2.11 lib/serverspec/commands/gentoo.rb
serverspec-0.2.10 lib/serverspec/commands/gentoo.rb
serverspec-0.2.9 lib/serverspec/commands/gentoo.rb
serverspec-0.2.8 lib/serverspec/commands/gentoo.rb
serverspec-0.2.7 lib/serverspec/commands/gentoo.rb
serverspec-0.2.6 lib/serverspec/commands/gentoo.rb
serverspec-0.2.5 lib/serverspec/commands/gentoo.rb
serverspec-0.2.4 lib/serverspec/commands/gentoo.rb
serverspec-0.2.3 lib/serverspec/commands/gentoo.rb
serverspec-0.2.2 lib/serverspec/commands/gentoo.rb
serverspec-0.2.1 lib/serverspec/commands/gentoo.rb
serverspec-0.1.7 lib/serverspec/commands/gentoo.rb
serverspec-0.1.6 lib/serverspec/commands/gentoo.rb