Sha256: 9a2b4bf54e49bd36362782768c05996b8cb048a31f612adb15d52004c10dc41d
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 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.ready_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 def prepare_module( mod ) isready = true @update && isready &= mod.prepare_for_vcs_access return isready end # prepare_module end # class Build end; end # module BuildTool::Commands
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
build-tool-0.5.3 | lib/build-tool/commands/fetch.rb |