class BranchIOCLI::Configuration::EnvConfiguration
Public Class Methods
examples()
click to toggle source
# File lib/branch_io_cli/configuration/env_configuration.rb, line 9 def examples { "Show CLI environment" => "br env", "Get completion script for zsh" => "br env -cs zsh" } end
new(options)
click to toggle source
Calls superclass method
BranchIOCLI::Configuration::Configuration::new
# File lib/branch_io_cli/configuration/env_configuration.rb, line 17 def initialize(options) @quiet = !options.verbose @ruby_version = options.ruby_version @rubygems_version = options.rubygems_version @lib_path = options.lib_path @assets_path = options.assets_path @completion_script = options.completion_script @shell = options.shell super end
summary()
click to toggle source
# File lib/branch_io_cli/configuration/env_configuration.rb, line 5 def summary "Output information about CLI environment." end
Public Instance Methods
log()
click to toggle source
Calls superclass method
BranchIOCLI::Configuration::Configuration#log
# File lib/branch_io_cli/configuration/env_configuration.rb, line 28 def log super return if quiet say <<EOF <%= color('Show completion script:', BOLD) %> #{completion_script} <%= color('Shell for completion script:', BOLD) %> #{shell} EOF end
show_all?()
click to toggle source
# File lib/branch_io_cli/configuration/env_configuration.rb, line 38 def show_all? !show_completion_script? end
show_completion_script?()
click to toggle source
# File lib/branch_io_cli/configuration/env_configuration.rb, line 42 def show_completion_script? completion_script end