Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (17 sloc) 492 Bytes
#!/usr/bin/env ruby
# Requires 3 arguments
#
# ./run [repository name] [ref type] [ref name]
#
# Sets the following environment variables
#
# ENV['repository'] - name of the repository
# ENV['ref_type'] - heads || tags
# ENV['ref_name'] - name of the head or tag
# ENV['tree'] - path to the working tree of cloned repo
#
# get to where we know we wanna be
Dir.chdir(File.dirname(__FILE__))
require 'lib/garuda.rb'
garuda = Garuda.new
garuda.clone_repository.run.cleanup