Sha256: 67edb014469f3650dbc6a299dd4efc281f7da90a5b53f73d3adc764d2521f430
Contents?: true
Size: 1.46 KB
Versions: 7
Compression:
Stored size: 1.46 KB
Contents
require 'build-tool/application' require 'build-tool/commands' module BuildTool; module Commands; class CtagsError < BuildTool::Error; end # # BuildCommand # class Fetch < ModuleBasedCommand include MJ::Tools::SubProcess name "fetch" description "fetch remote changes (if applicable)" long_description [ "Invoke the fetch phase for the given modules. It depends on the modules", "VCS if this command has any effect." ] # 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 isready &= mod.prepare_for_vcs_access if !mod.vcs.fetching_supported? logger.warn "#{mod.name}: fetching not supported by #{mod.vcs.name} -> implicit rebase." end return isready end def do_execute_module( mod ) if mod.checkedout? fetch( mod ) else clone( mod ) end end def teardown_command cleanup_after_vcs_access end end # class Build end; end # module BuildTool::Commands
Version data entries
7 entries across 7 versions & 1 rubygems