Class: AwsTools::S3::Synchronize
- Inherits:
-
Object
- Object
- AwsTools::S3::Synchronize
- Defined in:
- lib/aws_tools/s3.rb
Overview
Synchronize class.
Performs synchronization of every bucket in an S3 account.
Assume that you will be synchronizing to a bucket with a suffix located in another zone (since names need to be unique across all zones.
Instance Attribute Summary collapse
-
#backup_location ⇒ Object
Returns the value of attribute backup_location.
-
#backup_suffix ⇒ Object
Returns the value of attribute backup_suffix.
Instance Method Summary collapse
-
#initialize(s3, options = {}) ⇒ Synchronize
constructor
A new instance of Synchronize.
Constructor Details
#initialize(s3, options = {}) ⇒ Synchronize
Returns a new instance of Synchronize.
101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/aws_tools/s3.rb', line 101 def initialize(s3, = {}) puts "AwsTools::S3::Synchronize called." @s3 = s3 .each_pair do |key, value| self.send("#{key}=", value) end perform_synchronization end |
Instance Attribute Details
#backup_location ⇒ Object
Returns the value of attribute backup_location.
99 100 101 |
# File 'lib/aws_tools/s3.rb', line 99 def backup_location @backup_location end |
#backup_suffix ⇒ Object
Returns the value of attribute backup_suffix.
99 100 101 |
# File 'lib/aws_tools/s3.rb', line 99 def backup_suffix @backup_suffix end |