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.



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

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

Instance Method Details

#executeObject



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

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