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

Version Path
FreedomCoder-utility_belt-1.1.1.2 bin/amazon
FreedomCoder-utility_belt-1.1.1 bin/amazon
akitaonrails-utility_belt-1.0.10 bin/amazon
akitaonrails-utility_belt-1.0.11 bin/amazon
akitaonrails-utility_belt-1.0.12 bin/amazon
mguterl-utility_belt-1.0.7 bin/amazon
rwilcox-utility_belt-1.0.7 bin/amazon
rwilcox-utility_belt-1.0.9 bin/amazon
timocratic-utility_belt-1.0.7.1 bin/amazon
timocratic-utility_belt-1.0.7.2 bin/amazon
timocratic-utility_belt-1.0.7.3 bin/amazon
akitaonrails-utility_belt-1.0.13 bin/amazon