Class: Autoproj::CLI::Reconfigure

Inherits:
Base
  • Object
show all
Defined in:
lib/autoproj/cli/reconfigure.rb

Instance Attribute Summary

Attributes inherited from Base

#ws

Instance Method Summary collapse

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_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(args, options = Hash.new) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/autoproj/cli/reconfigure.rb', line 5

def run(args, options = Hash.new)
    ws.setup
    ws.config.reconfigure!
    options.each do |k, v|
        ws.config.set k, v, true
    end
    ws.load_package_sets
    ws.setup_all_package_directories
    ws.finalize_package_setup
    ws.config.save
end