Class: BuildTool::ModuleActions::Configure

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) ⇒ Configure

Returns a new instance of Configure.



186
187
188
# File 'lib/build-tool/command_actions.rb', line 186

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

Instance Method Details

#executeObject



190
191
192
193
194
195
196
# File 'lib/build-tool/command_actions.rb', line 190

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