Sha256: 66d373730221641ab98bb17be2c82cafd104b0125ee629af6fc91a7278b69e52

Contents?: true

Size: 434 Bytes

Versions: 21

Compression:

Stored size: 434 Bytes

Contents

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

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
serverspec-0.4.11 lib/serverspec/commands/gentoo.rb
serverspec-0.4.10 lib/serverspec/commands/gentoo.rb
serverspec-0.4.9 lib/serverspec/commands/gentoo.rb
serverspec-0.4.8 lib/serverspec/commands/gentoo.rb
serverspec-0.4.7 lib/serverspec/commands/gentoo.rb
serverspec-0.4.6 lib/serverspec/commands/gentoo.rb
serverspec-0.4.5 lib/serverspec/commands/gentoo.rb
serverspec-0.4.4 lib/serverspec/commands/gentoo.rb
serverspec-0.4.3 lib/serverspec/commands/gentoo.rb
serverspec-0.4.2 lib/serverspec/commands/gentoo.rb
serverspec-0.4.1 lib/serverspec/commands/gentoo.rb
serverspec-0.4.0 lib/serverspec/commands/gentoo.rb
serverspec-0.3.2 lib/serverspec/commands/gentoo.rb
serverspec-0.3.1 lib/serverspec/commands/gentoo.rb
serverspec-0.3.0 lib/serverspec/commands/gentoo.rb
serverspec-0.2.28 lib/serverspec/commands/gentoo.rb
serverspec-0.2.27 lib/serverspec/commands/gentoo.rb
serverspec-0.2.26 lib/serverspec/commands/gentoo.rb
serverspec-0.2.25 lib/serverspec/commands/gentoo.rb
serverspec-0.2.24 lib/serverspec/commands/gentoo.rb