require 'build-tool/application' require 'build-tool/commands' module BuildTool; module Commands; class CtagsError < BuildTool::Error; end # # BuildCommand # class Rebase < ModuleBasedCommand include MJ::Tools::SubProcess name "rebase" description "rebase local checkout against previously fetched remote changes." # Log this command if $noop is not active def log? ! $noop end def applicable? BuildTool::Application.instance.name != "build-tool" end def is_module_ready?( mod ) isready = true if !mod.checkedout? logger.warn "#{mod.name}: module not checked out -> skipping." end if !mod.vcs.fetching_supported? logger.warn "#{mod.name}: fetching not support by #{mod.vcs.name} -> will have no effect." end return isready end def do_execute_module( mod ) if mod.checkedout? rebase( mod ) else logger.info "Not checked out. Skipping" end end end # class Build end; end # module BuildTool::Commands