Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (17 sloc) 0.549 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
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
Something went wrong with that request. Please try again.