Class: BuildTool::ModuleActions::Rebase

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

Returns a new instance of Rebase.



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

def initialize( command, mod )
    super( command, 20, :rebase, mod )
    if !mod.vcs_required.fetching_supported?
        logger.info "Fetching not supported by vcs #{mod.vcs.name}. Doing nothing."
        return
    end
end

Instance Method Details

#executeObject



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

def execute()
    logger.info "Rebasing"
    @module.rebase
end