Class: Babushka::DebianSystemProfile
- Inherits:
-
LinuxSystemProfile
- Object
- SystemProfile
- LinuxSystemProfile
- Babushka::DebianSystemProfile
- Defined in:
- lib/babushka/system_profile.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#codename_str ⇒ Object
They're named just like our symbols; no need to duplicate in SystemDefinition.
- #flavour_str ⇒ Object
- #get_version_info ⇒ Object
- #pkg_helper ⇒ Object
- #release ⇒ Object
- #version ⇒ Object
Methods inherited from LinuxSystemProfile
#cpus, #public_ip, #system_str, #total_memory
Methods inherited from SystemProfile
#bsd?, #codename, #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
#codename_str ⇒ Object
They're named just like our symbols; no need to duplicate in SystemDefinition.
149 |
# File 'lib/babushka/system_profile.rb', line 149 def codename_str; codename.to_s end |
#flavour_str ⇒ Object
146 |
# File 'lib/babushka/system_profile.rb', line 146 def flavour_str; 'Debian' end |
#get_version_info ⇒ Object
151 |
# File 'lib/babushka/system_profile.rb', line 151 def get_version_info; shell('lsb_release -sr') end |
#pkg_helper ⇒ Object
152 |
# File 'lib/babushka/system_profile.rb', line 152 def pkg_helper; AptHelper end |
#release ⇒ Object
148 |
# File 'lib/babushka/system_profile.rb', line 148 def release; version[/^(\d+)/, 1] end |
#version ⇒ Object
147 |
# File 'lib/babushka/system_profile.rb', line 147 def version; version_info end |