Sha256: e7c037196a533e3c8c472ce9c22b14d1092a4c7e2c258fbe78c413c73d9ba449
Contents?: true
Size: 701 Bytes
Versions: 6
Compression:
Stored size: 701 Bytes
Contents
#!/usr/bin/env ruby %w{rubygems platform optparse}.each {|library| require library} # command-line args option_parser = OptionParser.new option_parser.on("-b", "--bucket NAME", String) {|bucket| @bucket = bucket} filenames = option_parser.parse(ARGV) abort "Usage: amazon -b bucket_name file_name" unless @bucket && filenames # require files, populate hash UTILITY_BELT_IRB_STARTUP_PROCS = {} utility_belt_lib = File.dirname(__FILE__) + '/../lib' require "#{utility_belt_lib}/mac_clipboard" require "#{utility_belt_lib}/amazon_upload_shortcut" UTILITY_BELT_IRB_STARTUP_PROCS[:define_s3_convenience_methods].call # baddabing, baddaboom filenames.each {|filename| puts aws_upload(@bucket, filename)}
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
utility_belt-1.0.3 | bin/amazon |
utility_belt-1.0.1 | bin/amazon |
utility_belt-1.0.2 | bin/amazon |
utility_belt-1.0.5 | bin/amazon |
utility_belt-1.0.6 | bin/amazon |
utility_belt-1.0.4 | bin/amazon |