Method: S3::Bucket#save

Defined in:
lib/s3/bucket.rb

#save(options = {}) ⇒ Object

Saves the newly built bucket.

Options

  • :location - location of the bucket (:eu or us)

  • Any other options are passed through to Connection#request



85
86
87
88
89
# File 'lib/s3/bucket.rb', line 85

def save(options = {})
  options = {:location => options} unless options.is_a?(Hash)
  create_bucket_configuration(options)
  true
end