Class: Serverspec::Commands::RedHat
- Inherits:
-
Base
- Object
- Base
- Serverspec::Commands::RedHat
show all
- Defined in:
- lib/serverspec/commands/redhat.rb
Instance Method Summary
collapse
Methods inherited from Base
#check_belonging_group, #check_cron_entry, #check_directory, #check_file, #check_file_contain, #check_file_contain_within, #check_gid, #check_group, #check_grouped, #check_home_directory, #check_installed_by_gem, #check_ipfilter_rule, #check_ipnat_rule, #check_iptables_rule, #check_link, #check_listening, #check_login_shell, #check_mode, #check_owner, #check_process, #check_running, #check_running_under_supervisor, #check_selinux, #check_svcprop, #check_svcprops, #check_uid, #check_user, #check_zfs, #get_mode
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
|