Class: Autoproj::CLI::Envsh

Inherits:
InspectionTool show all
Defined in:
lib/autoproj/cli/envsh.rb

Instance Attribute Summary

Attributes inherited from Base

#ws

Instance Method Summary collapse

Methods inherited from InspectionTool

#finalize_setup, #initialize_and_load

Methods inherited from Base

#export_env_sh, #initialize, #normalize_command_line_package_selection, #notify_env_sh_updated, #resolve_selection, #resolve_user_selection, validate_options, #validate_user_selection

Methods included from Ops::Tools

#common_options, #create_autobuild_package, #load_autoprojrc, #load_main_initrb

Constructor Details

This class inherits a constructor from Autoproj::CLI::Base

Instance Method Details

#run(**options) ⇒ Object



10
11
12
13
14
15
# File 'lib/autoproj/cli/envsh.rb', line 10

def run(**options)
    initialize_and_load
    shell_helpers = options.fetch(:shell_helpers, ws.config.shell_helpers?)
    finalize_setup(Array.new)
    export_env_sh(shell_helpers: shell_helpers)
end

#validate_options(_unused, options = Hash.new) ⇒ Object



5
6
7
8
# File 'lib/autoproj/cli/envsh.rb', line 5

def validate_options(_unused, options = Hash.new)
    _, options = super(_unused, options)
    [options]
end