Class: BuildTool::ModuleActions::Reconfigure

Inherits:
Base
  • Object
show all
Defined in:
lib/build-tool/command_actions.rb

Instance Method Summary collapse

Methods inherited from Base

#do

Constructor Details

#initialize(command, mod) ⇒ Reconfigure

Returns a new instance of Reconfigure.



202
203
204
# File 'lib/build-tool/command_actions.rb', line 202

def initialize( command, mod )
    super( command, 40, :reconfigure, mod )
end

Instance Method Details

#executeObject



206
207
208
209
210
211
212
# File 'lib/build-tool/command_actions.rb', line 206

def execute()
    logger.info "Reconfiguring"
    if !$noop and !@module.vcs_required.checkedout?
        raise ConfigurationError, "Module is not checked out. Enable updating."
    end
    @module.build_system_required.reconfigure
end