Method: Fog::Storage::AWS::Directory#location=
- Defined in:
- lib/fog/aws/models/storage/directory.rb
permalink #location=(new_location) ⇒ Object
[View source]
42 43 44 45 46 47 48 |
# File 'lib/fog/aws/models/storage/directory.rb', line 42 def location=(new_location) if INVALID_LOCATIONS.include?(new_location) raise ArgumentError, "location must not include any of #{INVALID_LOCATIONS.join(', ')}. See http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUT.html" else merge_attributes(:location => new_location) end end |