Module: Beso::Connection::ClassMethods

Defined in:
lib/beso/connection.rb

Instance Method Summary collapse

Instance Method Details

#connect {|AWS.new :access_key => Beso.access_key, :secret_key => Beso.secret_key, :bucket_name => Beso.bucket_name, :aws_region => Beso.aws_region| ... } ⇒ Object

Yields:

  • (AWS.new :access_key => Beso.access_key, :secret_key => Beso.secret_key, :bucket_name => Beso.bucket_name, :aws_region => Beso.aws_region)


57
58
59
60
61
62
# File 'lib/beso/connection.rb', line 57

def connect( &block )
  yield AWS.new :access_key  => Beso.access_key,
                :secret_key  => Beso.secret_key,
                :bucket_name => Beso.bucket_name,
                :aws_region  => Beso.aws_region
end