Method: Fog::Storage::AWS::Directory#save

Defined in:
lib/fog/aws/models/storage/directory.rb

#saveObject


99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/fog/aws/models/storage/directory.rb', line 99

def save
  requires :key

  options = {}

  options['x-amz-acl'] = acl if acl

  if location = attributes[:location] || (self.connection.region != 'us-east-1' && self.connection.region)
    options['LocationConstraint'] = location
  end

  connection.put_bucket(key, options)

  true
end