Sha256: aa2227a6861dcf230a1653bc1744d7a8f632a22bc78841f9bd410583b5d6df0b
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 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($PROGRAM_NAME)} 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assetify-3.0.0 | bin/assetify |