Sha256: 769b9734c7d1a830feb4a368ed36a48563d9c3a18c225b84567781179a3b35b4
Contents?: true
Size: 1.44 KB
Versions: 7
Compression:
Stored size: 1.44 KB
Contents
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." long_description [ "Invokes the rebase phase for the specified modules." ] # Log this command if $noop is not active def log? ! $noop end def applicable? BuildTool::Application.instance.name != "build-tool" end def initialize_options @options.banner = "Usage: #{Pathname.new($0).basename} #{self.fullname} MODULES..." super 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
Version data entries
7 entries across 7 versions & 1 rubygems