Class: Babushka::DragonFlySystemProfile

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

Instance Method Summary collapse

Methods inherited from BSDSystemProfile

#cpus, #get_version_info, #release, #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, #system_description, #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


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

def flavour_str; 'DragonFly' end

#pkg_helperObject


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

def pkg_helper; BinPkgSrcHelper end

#total_memoryObject


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

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