Class: Babushka::UbuntuSystemProfile
- Inherits:
-
LinuxSystemProfile
- Object
- SystemProfile
- LinuxSystemProfile
- Babushka::UbuntuSystemProfile
- Defined in:
- lib/babushka/system_profile.rb
Instance Method Summary collapse
Methods inherited from LinuxSystemProfile
#cpus, #public_ip, #release, #system_str, #total_memory
Methods inherited from SystemProfile
#bsd?, #codename, #codename_str, #cpu_type, #cpus, #definition, #description, #differentiator_for, #flavour, #hostname, #library_ext, #linux?, #match_list, #matcher, #matches?, #osx?, #pkg_helper_key, #pkg_helper_str, #public_ip, #system, #system_description, #total_memory, #version_info
Methods included from ShellHelpers
cmd_dir, current_username, log_shell, login_shell, raw_shell, shell, shell!, shell?, shell_cmd, sudo, which
Methods included from LogHelpers
debug, deprecated!, log, log_block, log_error, log_ok, log_stderr, log_warn, removed!
Instance Method Details
#flavour_str ⇒ Object
160 |
# File 'lib/babushka/system_profile.rb', line 160 def flavour_str; 'Ubuntu' end |
#get_version_info ⇒ Object
163 |
# File 'lib/babushka/system_profile.rb', line 163 def get_version_info; File.read('/etc/lsb-release') end |
#pkg_helper ⇒ Object
164 |
# File 'lib/babushka/system_profile.rb', line 164 def pkg_helper; AptHelper end |
#version ⇒ Object
161 |
# File 'lib/babushka/system_profile.rb', line 161 def version; version_info.val_for('DISTRIB_RELEASE') end |