Class: Babushka::FreeBSDSystemProfile
- Inherits:
-
BSDSystemProfile
- Object
- SystemProfile
- BSDSystemProfile
- Babushka::FreeBSDSystemProfile
- Defined in:
- lib/babushka/system_profile.rb
Instance Method Summary collapse
- #flavour_str ⇒ Object
- #pkg_helper ⇒ Object
-
#release ⇒ Object
So ‘9.0-RELEASE’ doesn’t become ‘9.0’.
-
#system_description ⇒ Object
Not ‘FreeBSD BSD’.
- #total_memory ⇒ Object
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_str ⇒ Object
124 |
# File 'lib/babushka/system_profile.rb', line 124 def flavour_str; 'FreeBSD' end |
#pkg_helper ⇒ Object
126 |
# File 'lib/babushka/system_profile.rb', line 126 def pkg_helper; BinPortsHelper end |
#release ⇒ Object
So ‘9.0-RELEASE’ doesn’t become ‘9.0’
125 |
# File 'lib/babushka/system_profile.rb', line 125 def release; version end |
#system_description ⇒ Object
Not ‘FreeBSD BSD’
123 |
# File 'lib/babushka/system_profile.rb', line 123 def system_description; flavour_str end |
#total_memory ⇒ Object
127 |
# File 'lib/babushka/system_profile.rb', line 127 def total_memory; shell("sysctl -n hw.realmem").to_i end |