Class: Babushka::LinuxSystemProfile
- Inherits:
-
SystemProfile
show all
- Defined in:
- lib/babushka/system_profile.rb
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
#bsd?, #cpu_type, #description, #differentiator_for, #first_nonmatch_for, #flavour_str_map, for_host, #library_ext, #match_list, #matches?, #name, #name_str, #osx?, #our_flavour_names, #our_flavours, #pkg_helper, #pkg_helper_key, #pkg_helper_str, #total_memory, #version_info
#cmd_dir, #failable_shell, #log_shell, #login_shell, #raw_shell, #shell, #shell!, #shell?, #sudo, #which
Methods included from LogHelpers
#debug, #log, #log_block, #log_error, #log_ok, #log_verbose, #log_warn
Class Method Details
+ (Object) for_flavour
163
164
165
|
# File 'lib/babushka/system_profile.rb', line 163
def self.for_flavour
(detect_using_release_file || LinuxSystemProfile).new
end
|
Instance Method Details
158
|
# File 'lib/babushka/system_profile.rb', line 158
def flavour; :unknown end
|
- (Object) flavour_str
159
|
# File 'lib/babushka/system_profile.rb', line 159
def flavour_str; flavour_str_map[system][flavour] end
|
- (Boolean) linux?
155
|
# File 'lib/babushka/system_profile.rb', line 155
def linux?; true end
|
161
|
# File 'lib/babushka/system_profile.rb', line 161
def release; version end
|
156
|
# File 'lib/babushka/system_profile.rb', line 156
def system; :linux end
|
- (Object) system_str
157
|
# File 'lib/babushka/system_profile.rb', line 157
def system_str; 'Linux' end
|
160
|
# File 'lib/babushka/system_profile.rb', line 160
def version; 'unknown' end
|