Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 549 Bytes
desc "Revendor"
task :revendor do
FileUtils.rm_rf File.join(root, "vendor")
vendor "anvil", "https://github.com/ddollar/anvil-cli.git"
vendor "distributor", "https://github.com/ddollar/distributor.git"
vendor "listen", "https://github.com/guard/listen.git"
vendor "progress", "https://github.com/toy/progress.git"
end
def root
File.dirname(__FILE__)
end
def vendor(name, git)
system "git clone #{git} vendor/#{name}"
Dir[File.join(root, "vendor", name, "**", ".git")].each do |dir|
FileUtils.rm_rf dir
end
end