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_perms ⇒ Object
Returns the value of attribute backup_perms.
-
#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.
140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/aws_tools/s3.rb', line 140 def initialize(s3, = {}) puts "AwsTools::S3::Synchronize initialize" @s3 = s3 .each_pair do |key, value| self.send("#{key}=", value) end setup_defaults perform_synchronization end |
Instance Attribute Details
#backup_location ⇒ Object
Returns the value of attribute backup_location.
136 137 138 |
# File 'lib/aws_tools/s3.rb', line 136 def backup_location @backup_location end |
#backup_perms ⇒ Object
Returns the value of attribute backup_perms.
136 137 138 |
# File 'lib/aws_tools/s3.rb', line 136 def backup_perms @backup_perms end |
#backup_suffix ⇒ Object
Returns the value of attribute backup_suffix.
136 137 138 |
# File 'lib/aws_tools/s3.rb', line 136 def backup_suffix @backup_suffix end |