Class: Serverspec::Commands::Debian
- Inherits:
-
Base
- Object
- Base
- Serverspec::Commands::Debian
show all
- Defined in:
- lib/serverspec/commands/debian.rb
Instance Method Summary
collapse
Methods inherited from Base
#check_belonging_group, #check_cron_entry, #check_directory, #check_file, #check_file_contain, #check_group, #check_grouped, #check_installed_by_gem, #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/debian.rb', line 4
def check_enabled service
"ls /etc/rc3.d/ | grep #{service}"
end
|
#check_installed(package) ⇒ Object
8
9
10
|
# File 'lib/serverspec/commands/debian.rb', line 8
def check_installed package
"dpkg -s #{package}"
end
|