amazon-ec2 0.9.11 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.11
1
+ 0.9.12
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{amazon-ec2}
8
- s.version = "0.9.11"
8
+ s.version = "0.9.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Glenn Rempe"]
@@ -347,12 +347,15 @@ module AWS
347
347
  # @option options [String] :db_security_groups are the list of db security groups to associate with the instance (nil)
348
348
  # @option options [String] :availability_zone is the availability_zone to create the instance in (nil)
349
349
  # @option options [String] :preferred_maintenance_window in format: ddd:hh24:mi-ddd:hh24:mi (nil)
350
- # @option options [String] :backend_retention_period is the number of days which automated backups are retained (1)
350
+ # @option options [String] :backup_retention_period is the number of days which automated backups are retained (1)
351
351
  # @option options [String] :preferred_backup_window is the daily time range for which automated backups are created
352
352
  #
353
353
  def modify_db_instance( options = {})
354
354
  raise ArgumentError, "No :db_instance_identifier provided" if options.does_not_have?(:db_instance_identifier)
355
355
 
356
+ # handle a former argument that was misspelled
357
+ raise ArgumentError, "Perhaps you meant :backup_retention_period" if options.has?(:backend_retention_period)
358
+
356
359
  params = {}
357
360
  params['DBInstanceIdentifier'] = options[:db_instance_identifier]
358
361
 
@@ -367,7 +370,7 @@ module AWS
367
370
  params["DBSecurityGroups"] = options[:db_security_groups] if options.has?(:db_security_groups)
368
371
  params["AvailabilityZone"] = options[:availability_zone] if options.has?(:availability_zone)
369
372
  params["PreferredMaintenanceWindow"] = options[:preferred_maintenance_window] if options.has?(:preferred_maintenance_window)
370
- params["BackupRetentionPeriod"] = options[:backend_retention_period] if options.has?(:backend_retention_period)
373
+ params["BackupRetentionPeriod"] = options[:backup_retention_period].to_s if options.has?(:backup_retention_period)
371
374
  params["PreferredBackupWindow"] = options[:preferred_backup_window] if options.has?(:preferred_backup_window)
372
375
 
373
376
  return response_generator(:action => "ModifyDBInstance", :params => params)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 11
9
- version: 0.9.11
8
+ - 12
9
+ version: 0.9.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Glenn Rempe