Sha256: ee4108578af4aa00b49ac7063266ae54576256b1e372a24f809d333e29efdafd
Contents?: true
Size: 761 Bytes
Versions: 3
Compression:
Stored size: 761 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' if RUBY_VERSION < '1.9' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'optparse' require 'assetify' opt = OptionParser.new do |o| o.banner = <<BANNER This is Assetify! What we`re going to do? Usage: #{File.basename($0)} command [args] Commands: install - All assets update - Outdated assets check - Prints changes Commands are matched by regex, e.g. "up -> update". Options: BANNER o.on('-h', "Show help") { puts o; exit } o.on('-d', "Verbose (Debug)") { Assetify::Opt[:debug] = true } o.parse! end begin Assetify.work!(ARGV) rescue Interrupt => e puts "\nQuitting..." puts e.backtrace.join("\n") exit 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
assetify-2.0.1 | bin/assetify |
assetify-2.0.0 | bin/assetify |
assetify-1.0.0 | bin/assetify |