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_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/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