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.



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

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



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

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