Sha256: 9223a9d6b64204a3b9ed6d13037ac42c51c9f69c2d4d47395a350ed4fe6534ea
Contents?: true
Size: 875 Bytes
Versions: 3
Compression:
Stored size: 875 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require 'optparse' $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) options = {} parser = OptionParser.new do |opts| opts.banner = <<BANNER Vendorer keeps your vendor files up to date. Usage: Create a Vendorfile in your project root with: file 'public/javascripts/jquery.min.js' => 'http://code.jquery.com/jquery-latest.min.js' folder 'vendor/plugins/parallel_tests' => 'https://github.com/grosser/parallel_tests.git' Run `vendorer` to install. Run `vendorer update` to update. Options: BANNER opts.on("-v", "--version", "Show Version"){ require 'vendorer/version' puts Vendorer::VERSION exit } opts.on("-h", "--help", "Show this.") { puts opts; exit } end parser.parse! require 'vendorer' v = Vendorer.new(:update => (ARGV[1] || true if ARGV[0] == 'update')) v.parse(File.read('Vendorfile'))
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vendorer-0.1.8 | bin/vendorer |
vendorer-0.1.7 | bin/vendorer |
vendorer-0.1.6 | bin/vendorer |