Class: Serverspec::Commands::RedHat

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/commands/redhat.rb

Instance Method Summary collapse

Methods inherited from Base

#check_cron_entry, #check_directory, #check_file, #check_file_contain, #check_group, #check_grouped, #check_link, #check_listening, #check_mode, #check_owner, #check_process, #check_running, #check_user

Instance Method Details

#check_enabled(service) ⇒ Object



4
5
6
# File 'lib/serverspec/commands/redhat.rb', line 4

def check_enabled service
  "chkconfig --list #{service} | grep 3:on"
end

#check_installed(package) ⇒ Object



8
9
10
# File 'lib/serverspec/commands/redhat.rb', line 8

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