class EnvironmentInformation::Base
Public Instance Methods
cd(i)
click to toggle source
commandline_arguments?()
click to toggle source
e(i = '')
click to toggle source
esystem(i)
click to toggle source
first_argument?()
click to toggle source
#¶ ↑
first_argument?¶ ↑
#¶ ↑
# File lib/environment_information/base/base.rb, line 50 def first_argument? @commandline_arguments.first end
Also aliased as: first?
gold(i = '')
click to toggle source
is_on_roebe?()
click to toggle source
is_rbt_available?()
click to toggle source
lightblue(i = '')
click to toggle source
log_dir?()
click to toggle source
#¶ ↑
log_dir?¶ ↑
#¶ ↑
# File lib/environment_information/base/base.rb, line 67 def log_dir? ::EnvironmentInformation.temp_directory? end
Also aliased as: log_directory?
mediumaquamarine(i = '')
click to toggle source
report_left_right( left = program_name?, right = program_version?, colour_for_the_left_side = ::EnvironmentInformation.colour_for_the_left_side, colour_for_the_right_side = ::EnvironmentInformation.colour_for_the_right_side, colour_for_program_not_found = ::EnvironmentInformation.colour_for_program_not_found, use_padding = true )
click to toggle source
#¶ ↑
report_left_right
¶ ↑
#¶ ↑
# File lib/environment_information/base/base.rb, line 99 def report_left_right( left = program_name?, right = program_version?, colour_for_the_left_side = ::EnvironmentInformation.colour_for_the_left_side, colour_for_the_right_side = ::EnvironmentInformation.colour_for_the_right_side, colour_for_program_not_found = ::EnvironmentInformation.colour_for_program_not_found, use_padding = true ) case colour_for_the_left_side # ======================================================================= # # === :default_colour # ======================================================================= # when :default_colour colour_for_the_left_side = ::EnvironmentInformation.colour_for_the_left_side end case colour_for_the_right_side # ======================================================================= # # === :default_colour # ======================================================================= # when :default_colour colour_for_the_right_side = ::EnvironmentInformation.colour_for_the_right_side end case colour_for_program_not_found # ======================================================================= # # === :default_colour # ======================================================================= # when :default_colour colour_for_program_not_found = ::EnvironmentInformation.colour_for_program_not_found end case right when nil right = NOT_INSTALLED_OR_NOT_FOUND end right = right.dup if right.frozen? right.strip! if right.include? 'not found' right = ::EnvironmentInformation.send( colour_for_program_not_found, right ) end colourized_right_side = ::EnvironmentInformation.send( colour_for_the_right_side, right ) modified_left = "#{left}:" modified_left = modified_left.ljust(32) if use_padding e ::EnvironmentInformation.send( colour_for_the_left_side, modified_left )+ " #{colourized_right_side}" end