Class: Babushka::FreeBSDSystemProfile

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

Instance Method Summary collapse

Methods inherited from BSDSystemProfile

#cpus, #get_version_info, #system, #system_str, #version

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, #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_strObject


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

def flavour_str; 'FreeBSD' end

#pkg_helperObject


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

def pkg_helper; BinPortsHelper end

#releaseObject

So '9.0-RELEASE' doesn't become '9.0'


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

def release; version end

#system_descriptionObject

Not 'FreeBSD BSD'


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

def system_description; flavour_str end

#total_memoryObject


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

def total_memory; shell("sysctl -n hw.realmem").to_i end