Sha256: 3569eb33c9c3ce6f29b2a749ef71df4e0dc7ab73019b89dad062ef6d8a551758

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'yaml'

# Set the S3 keys to the right account if the account name was given in the command line
unless ARGV.empty?
  s3_keys = YAML::load_file(File.join(ENV['HOME'], '.s3_keys.yml'))
  if s3_keys.has_key?(ARGV[0])
    keys = s3_keys[ARGV[0]]
    ENV['AMAZON_ACCESS_KEY_ID'] = keys['amazon_access_key_id']
    ENV['AMAZON_SECRET_ACCESS_KEY'] = keys['amazon_secret_access_key']
  end
end

exec("irb -r s3lib")

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
spatten-s3lib-0.0.1 bin/s3lib
s3lib-0.1.1 bin/s3lib
s3lib-0.1.0 bin/s3lib