Class: Serverspec::Commands::Gentoo

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/commands/gentoo.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_group, #check_grouped, #check_installed_by_gem, #check_ipfilter_rule, #check_iptables_rule, #check_link, #check_listening, #check_mode, #check_owner, #check_process, #check_running, #check_running_under_supervisor, #check_user, #check_zfs, #get_mode

Instance Method Details

#check_enabled(service) ⇒ Object



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

def check_enabled service
  "/sbin/rc-update show | grep '^\\s*#{service}\\s*|\\s*\\(boot\\|default\\)'"
end

#check_installed(package) ⇒ Object



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

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