Class: Babushka::DebianSystemProfile

Inherits:
LinuxSystemProfile show all
Defined in:
lib/babushka/system_profile.rb

Direct Known Subclasses

RaspbianSystemProfile

Instance Method Summary collapse

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_strObject

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_strObject


146
# File 'lib/babushka/system_profile.rb', line 146

def flavour_str; 'Debian' end

#get_version_infoObject


151
# File 'lib/babushka/system_profile.rb', line 151

def get_version_info; shell('lsb_release -sr') end

#pkg_helperObject


152
# File 'lib/babushka/system_profile.rb', line 152

def pkg_helper; AptHelper end

#releaseObject


148
# File 'lib/babushka/system_profile.rb', line 148

def release; version[/^(\d+)/, 1] end

#versionObject


147
# File 'lib/babushka/system_profile.rb', line 147

def version; version_info end