Class: Babushka::DragonFlySystemProfile

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



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

def flavour; :dragonfly end

#pkg_helperObject



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

def pkg_helper; BinPkgSrcHelper end

#system_strObject



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

def system_str; 'DragonFly' end

#total_memoryObject



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

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