Class: AwsTools::S3::Synchronize

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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, options = {}) 
  puts "AwsTools::S3::Synchronize called."

  @s3 = s3

  options.each_pair do |key, value| 
    self.send("#{key}=", value)
  end

  perform_synchronization
end

Instance Attribute Details

#backup_locationObject

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_suffixObject

Returns the value of attribute backup_suffix.



99
100
101
# File 'lib/aws_tools/s3.rb', line 99

def backup_suffix
  @backup_suffix
end