Sha256: bbf91d87901126d38ad2b40003a86fec5f5bf3d8a3543be832c0f8af3d39bb50
Contents?: true
Size: 1.43 KB
Versions: 8
Compression:
Stored size: 1.43 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.has_recipe? 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
8 entries across 8 versions & 1 rubygems