Sha256: f3417e4ae61984a331afbae35b84d179d06018c74ff3e445d4a2248058628223

Contents?: true

Size: 243 Bytes

Versions: 47

Compression:

Stored size: 243 Bytes

Contents

module Serverspec
  module Commands
    class RedHat < Base
      def check_enabled service
        "chkconfig --list #{service} | grep 3:on"
      end

      def check_installed package
        "rpm -q #{package}"
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
serverspec-0.2.22 lib/serverspec/commands/redhat.rb
serverspec-0.2.21 lib/serverspec/commands/redhat.rb
serverspec-0.2.20 lib/serverspec/commands/redhat.rb
serverspec-0.2.19 lib/serverspec/commands/redhat.rb
serverspec-0.2.18 lib/serverspec/commands/redhat.rb
serverspec-0.2.17 lib/serverspec/commands/redhat.rb
serverspec-0.2.16 lib/serverspec/commands/redhat.rb
serverspec-0.2.15 lib/serverspec/commands/redhat.rb
serverspec-0.2.14 lib/serverspec/commands/redhat.rb
serverspec-0.2.13 lib/serverspec/commands/redhat.rb
serverspec-0.2.12 lib/serverspec/commands/redhat.rb
serverspec-0.2.11 lib/serverspec/commands/redhat.rb
serverspec-0.2.10 lib/serverspec/commands/redhat.rb
serverspec-0.2.9 lib/serverspec/commands/redhat.rb
serverspec-0.2.8 lib/serverspec/commands/redhat.rb
serverspec-0.2.7 lib/serverspec/commands/redhat.rb
serverspec-0.2.6 lib/serverspec/commands/redhat.rb
serverspec-0.2.5 lib/serverspec/commands/redhat.rb
serverspec-0.2.4 lib/serverspec/commands/redhat.rb
serverspec-0.2.3 lib/serverspec/commands/redhat.rb