Class: Babushka::BSDSystemProfile

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

Direct Known Subclasses

DragonFlySystemProfile, FreeBSDSystemProfile

Instance Method Summary collapse

Methods inherited from SystemProfile

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

#flavourObject



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

def flavour; :unknown end

#flavour_strObject



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

def flavour_str; system_str end

#get_version_infoObject



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

def get_version_info; shell 'uname -v' end

#releaseObject



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

def release; shell 'uname -r' end

#systemObject



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

def system; :bsd end

#system_strObject



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

def system_str; 'BSD' end

#versionObject



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

def version; shell 'uname -s' end