Sha256: e3dcbb1f6b8b53434379b346630035f3dfbb34d3b1ada715f5477aaf60fcb2db

Contents?: true

Size: 442 Bytes

Versions: 96

Compression:

Stored size: 442 Bytes

Contents

module SpecInfra
  module Command
    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

96 entries across 96 versions & 1 rubygems

Version Path
specinfra-1.27.5 lib/specinfra/command/gentoo.rb
specinfra-1.27.4 lib/specinfra/command/gentoo.rb
specinfra-1.27.3 lib/specinfra/command/gentoo.rb
specinfra-1.27.2 lib/specinfra/command/gentoo.rb
specinfra-1.27.1 lib/specinfra/command/gentoo.rb
specinfra-1.27.0 lib/specinfra/command/gentoo.rb
specinfra-1.26.0 lib/specinfra/command/gentoo.rb
specinfra-1.25.8 lib/specinfra/command/gentoo.rb
specinfra-1.25.7 lib/specinfra/command/gentoo.rb
specinfra-1.25.6 lib/specinfra/command/gentoo.rb
specinfra-1.25.5 lib/specinfra/command/gentoo.rb
specinfra-1.25.4 lib/specinfra/command/gentoo.rb
specinfra-1.25.3 lib/specinfra/command/gentoo.rb
specinfra-1.25.2 lib/specinfra/command/gentoo.rb
specinfra-1.25.1 lib/specinfra/command/gentoo.rb
specinfra-1.25.0 lib/specinfra/command/gentoo.rb
specinfra-1.24.0 lib/specinfra/command/gentoo.rb
specinfra-1.23.1 lib/specinfra/command/gentoo.rb
specinfra-1.23.0 lib/specinfra/command/gentoo.rb
specinfra-1.22.1 lib/specinfra/command/gentoo.rb