Class: FakeAWS::S3::Operations::PutBucket
- Inherits:
-
Object
- Object
- FakeAWS::S3::Operations::PutBucket
- Defined in:
- lib/fake_aws/s3/operations/put_bucket.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(root_directory, request) ⇒ PutBucket
constructor
A new instance of PutBucket.
Constructor Details
#initialize(root_directory, request) ⇒ PutBucket
Returns a new instance of PutBucket.
7 8 9 10 |
# File 'lib/fake_aws/s3/operations/put_bucket.rb', line 7 def initialize(root_directory, request) @root_directory = root_directory @request = request end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 |
# File 'lib/fake_aws/s3/operations/put_bucket.rb', line 12 def call return bucket_already_exists_response if bucket_on_disk.exists? bucket_on_disk.create success_response end |