Class: Bard::Backup::Controller
- Inherits:
-
Struct
- Object
- Struct
- Bard::Backup::Controller
- Defined in:
- lib/bard/backup/controller.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#s3_path ⇒ Object
Returns the value of attribute s3_path.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key
6 7 8 |
# File 'lib/bard/backup/controller.rb', line 6 def access_key @access_key end |
#filename ⇒ Object
Returns the value of attribute filename
6 7 8 |
# File 'lib/bard/backup/controller.rb', line 6 def filename @filename end |
#s3_path ⇒ Object
Returns the value of attribute s3_path
6 7 8 |
# File 'lib/bard/backup/controller.rb', line 6 def s3_path @s3_path end |
#secret_key ⇒ Object
Returns the value of attribute secret_key
6 7 8 |
# File 'lib/bard/backup/controller.rb', line 6 def secret_key @secret_key end |
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 |
# File 'lib/bard/backup/controller.rb', line 7 def call path = "/tmp/#{filename}" Backhoe.dump path s3_dir = S3Dir.new(path: s3_path, access_key:, secret_key:) s3_dir.put path end |