lib/tmbundle.rb in tmbundle-manager-0.1.0.pre6 vs lib/tmbundle.rb in tmbundle-manager-0.1.0.pre7

- old
+ new

@@ -9,20 +9,23 @@ mate bundle.path rescue NotFound return false end - desc 'update', 'Update installed bundles' - def update + desc 'update [PARTIAL_NAME]', 'Update installed bundles' + def update(partial_name = nil) + bundle = find_bundle(partial_name) if partial_name + bundles_to_update = bundle ? [bundle] : installed_bundles + require 'thread' signals = Queue.new trap('INT') { signals << :int } updated = [] skipped = [] errored = [] - installed_bundles[0..4].each do |bundle| + bundles_to_update.each do |bundle| within bundle do if not(File.exist?('./.git')) puts "------> Skipping #{bundle.name} (not a Git repo, delta bundle?)" skipped << bundle next