Method: Fog::Storage::AWS::Mock#put_bucket_website
- Defined in:
- lib/fog/aws/requests/storage/put_bucket_website.rb
permalink #put_bucket_website(bucket_name, suffix, options = {}) ⇒ Object
[View source]
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/fog/aws/requests/storage/put_bucket_website.rb', line 50 def put_bucket_website(bucket_name, suffix, = {}) response = Excon::Response.new if self.data[:buckets][bucket_name] response.status = 200 else response.status = 404 raise(Excon::Errors.status_error({:expects => 200}, response)) end response end |