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.



140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/aws_tools/s3.rb', line 140

def initialize(s3, options = {}) 
  puts "AwsTools::S3::Synchronize initialize"

  @s3 = s3

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

  setup_defaults
  perform_synchronization
end

Instance Attribute Details

#backup_locationObject

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_permsObject

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_suffixObject

Returns the value of attribute backup_suffix.



136
137
138
# File 'lib/aws_tools/s3.rb', line 136

def backup_suffix
  @backup_suffix
end