Sha256: c205fa7a489f6e1fca37a93c6831c559bd3bb8495cb731585128a481340164a9
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
#!/usr/bin/env ruby %w{rubygems platform aws/s3 optparse}.each {|library| require library} option_parser = OptionParser.new option_parser.on("-b", "--bucket NAME", String) {|bucket| @bucket = bucket} filenames = option_parser.parse(ARGV) if @bucket && filenames 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 filenames.each {|filename| puts aws_upload(@bucket, filename)} else puts "Usage: amazon -b bucket_name file_name" exit end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
utility_belt-1.0.0 | bin/amazon |