Class: Babushka::FreeBSDSystemProfile

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

Instance Method Summary collapse

Methods inherited from BSDSystemProfile

#flavour_str, #get_version_info, #release, #system, #version

Methods inherited from SystemProfile

#bsd?, #cpu_type, #cpus, #description, #differentiator_for, #library_ext, #linux?, #match_list, #matcher, #matches?, #name, #name_str, #osx?, #pkg_helper_key, #pkg_helper_str, #public_ip, #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

#flavourObject



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

def flavour; :freebsd end

#pkg_helperObject



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

def pkg_helper; BinPortsHelper end

#system_strObject



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

def system_str; 'FreeBSD' end

#total_memoryObject



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

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