Class: AwsTools::Ec2::Helpers::SynchronizeS3Buckets

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_tools/ec2.rb

Overview

SynchronizeS3Buckets

Documentation coming soon.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ec2, ami, access_key, secret_access_key, options = {}) ⇒ SynchronizeS3Buckets

Initalizer.

Required parameters:

ec2: authenticated rightaws ec2 instance to launch the

instance from

ami: ami to use to perform the backup

access_key: access key to use for s3 inside of instance

secret_access_key: secret access key to use for s3 inside of

instance


51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/aws_tools/ec2.rb', line 51

def initialize(ec2, 
               ami, 
               access_key, 
               secret_access_key, 
               options = {}) 
  puts "AwsTools::Ec2::Helpers::SynchronizeS3Buckets " +
       "initialize"
  
  @ec2 =                ec2
  @ami =                ami
  @access_key =         access_key
  @secret_access_key =  secret_access_key
  
  options.each_pair do |key, value| 
    self.send("#{key}=", value)
  end

  setup_defaults
  launch_instance
end

Instance Attribute Details

#addressing_typeObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def addressing_type
  @addressing_type
end

#availability_zoneObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def availability_zone
  @availability_zone
end

#block_device_mappingsObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def block_device_mappings
  @block_device_mappings
end

#disable_api_terminationObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def disable_api_termination
  @disable_api_termination
end

#instance_initiated_shutdown_behaviorObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def instance_initiated_shutdown_behavior
  @instance_initiated_shutdown_behavior
end

#instance_typeObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def instance_type
  @instance_type
end

#kernel_idObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def kernel_id
  @kernel_id
end

#key_nameObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def key_name
  @key_name
end

#max_countObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def max_count
  @max_count
end

#min_countObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def min_count
  @min_count
end

#monitoring_enabledObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def monitoring_enabled
  @monitoring_enabled
end

#ramdisk_idObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def ramdisk_id
  @ramdisk_id
end

#security_groupObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def security_group
  @security_group
end

#subnet_idObject

Accessors for everything we might need to specify.

Refactor this eventually back into AwsTools::Ec2 or AwsTools::Ec2::Helpers



23
24
25
# File 'lib/aws_tools/ec2.rb', line 23

def subnet_id
  @subnet_id
end