Sha256: 771d2650c05842dc4424d828885c6af326218ed9f149a5ad1c6a7ae6aadc792b
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
require "rake" require_relative "parser" require_relative "arborist" namespace :vendorise do desc "Installs a gem from the specified url to /vendor/gems" task :gem, :url do |t, args| parser = Vendorise::Parser.new(args[:url]) url = parser.gem_url or raise "Please specify a valid url for the gem" command = Vendorise::Arborist.new("vendor/gems/#{parser.gem_name}", url).subtree_command system(command) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vendorise-0.2.0 | lib/vendorise/tasks.rb |