Sha256: f3c2c759bc46dacc5a10bb6a28b0408979c7666d2e777559a74764f4eef69e7f

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 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 'flyrb'
Flyrb.equip(:amazon_upload_shortcut)
include Flyrb::AmazonUploadShortcut

# baddabing, baddaboom
filenames.each {|filename| puts aws_upload(@bucket, filename)}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flyrb-1.0.0.c bin/amazon
flyrb-1.0.0.b bin/amazon
flyrb-1.0.0.a bin/amazon