lib/vendorer.rb in vendorer-0.1.2 vs lib/vendorer.rb in vendorer-0.1.3

- old
+ new

@@ -9,17 +9,19 @@ def file(path, url) update_or_not path do run "mkdir -p #{File.dirname(path)}" run "curl '#{url}' -o #{path}" raise "Downloaded empty file" unless File.exist?(path) + yield path if block_given? end end def folder(path, url) update_or_not path do run "mkdir -p #{File.dirname(path)}" run "git clone '#{url}' #{path}" run "rm -rf #{path}/.git" + yield path if block_given? end end def update_or_not(path) update_requested = (@options[:update] and (@options[:update] == true or @options[:update] == path))