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

Returns a new instance of Rebase.



137
138
139
140
141
142
143
# File 'lib/build-tool/command_actions.rb', line 137

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

Instance Method Details

#executeObject



145
146
147
148
# File 'lib/build-tool/command_actions.rb', line 145

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