Sha256: a66cf6b1b0662f50810bff446bd81f49e27dde9b8929b46c95c2bcc106eac81b
Contents?: true
Size: 575 Bytes
Versions: 12
Compression:
Stored size: 575 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 unless bucket.empty?} filenames = option_parser.parse(ARGV) abort "Usage: amazon -b bucket_name file_name" unless @bucket && filenames # require files, populate hash require 'utility_belt' UtilityBelt.equip(:amazon_upload_shortcut) include UtilityBelt::AmazonUploadShortcut # baddabing, baddaboom filenames.each {|filename| puts aws_upload(@bucket, filename)}
Version data entries
12 entries across 12 versions & 5 rubygems