Sha256: 321a9964ebf593619dcc366e8be198ccdc5a0b135548bce125723362e028127d
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 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, :branch] do |t, args| args.with_defaults(branch: "master") parser = Vendorise::Parser.new(args[:url]) url = parser.gem_url or raise "Please specify a valid url for the gem" branch = args[:branch] command = Vendorise::Arborist.new("vendor/gems/#{parser.gem_name}", url, branch).subtree_command sh(command) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vendorise-0.3.0 | lib/vendorise/tasks.rb |