Class: Squidward::Command::Bucket
- Defined in:
- lib/squidward/commands/bucket.rb
Overview
Handles all the command related to AWS S3’s buckets
Instance Method Summary collapse
-
#set(args) ⇒ Object
Sets the destination bucket for the backups to be uploaded on S3.
Methods inherited from Secured
#ask, #ask_for_credentials, #ask_for_password, #echo_off, #echo_on, #initialize, #read_credentials, #store_credentials
Methods inherited from Base
#configuration, #display, #logger, #store_configuration
Constructor Details
This class inherits a constructor from Squidward::Command::Secured
Instance Method Details
#set(args) ⇒ Object
Sets the destination bucket for the backups to be uploaded on S3
6 7 8 9 10 |
# File 'lib/squidward/commands/bucket.rb', line 6 def set(args) new_configuration = configuration new_configuration[:default_bucket] = args[0] store_configuration(new_configuration) end |