Sha256: b627b1f2d37984340dc408213134b54ac68ea66a11075c58c531158bc525244a

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serverspec-0.2.22 lib/serverspec/commands/gentoo.rb
serverspec-0.2.21 lib/serverspec/commands/gentoo.rb
serverspec-0.2.20 lib/serverspec/commands/gentoo.rb
serverspec-0.2.19 lib/serverspec/commands/gentoo.rb