Skip to content

Commit

Permalink
Fixed up some variable shit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Meiklejohn committed Mar 11, 2010
1 parent e08a800 commit 3e9ff70
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/aws_workers/ec2/backup_s3_buckets.rb
Expand Up @@ -27,7 +27,10 @@ class BackupS3Buckets < Ec2
# Define accessors and options needed for this
# particular worker.
attr_accessor :s3_access_key,
:s3_secret_access_key
:s3_secret_access_key,
:location_constraint,
:permissions,
:backup_suffix

# Call superclass initalizer, and
# then setup options which are local to
Expand Down Expand Up @@ -65,12 +68,11 @@ def method_to_execute
output <<EOF
worker = AwsWorkers::S3::BackupAllBuckets(
nil,
:s
:s3_access_key => access_key,
:s3_secret_access_key => secret_access_key,
:location_constraint => "eu",
:permissions => "public-read",
:backup_suffix => "-backup"
:s3_access_key => #{@access_key},
:s3_secret_access_key => #{@secret_access_key},
:location_constraint => #{@location_constraint},
:permissions => #{@permissions},
:backup_suffix => #{@backup_suffix}
)
EOF
output
Expand Down

0 comments on commit 3e9ff70

Please sign in to comment.