ec2launcher 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.4.1
2
+
3
+ * Fixed typo.
4
+
1
5
  ## 1.4.0
2
6
 
3
7
  * When terminating an instance, delete all EBS snapshots for volumes attached to that instance.
data/bin/ec2launcher CHANGED
@@ -28,7 +28,7 @@ if opt_parser.command == "init"
28
28
  puts "Successfully created #{opt_parser.location}"
29
29
  elsif opt_parser.command =~ /^term/
30
30
  terminator = EC2Launcher::Terminator.new(opt_parser.options.directory, opt_parser.options.environ)
31
- terminator.terminate(opt_parser.hostname, opt_parser.options.access_key, opt_parser.options.secret_key, opt_parser.snapshot_removal)
31
+ terminator.terminate(opt_parser.hostname, opt_parser.options.access_key, opt_parser.options.secret_key, opt_parser.options.snapshot_removal)
32
32
  elsif opt_parser.command == "launch"
33
33
  launcher = EC2Launcher::Launcher.new
34
34
  launcher.launch(opt_parser.options)
@@ -106,8 +106,8 @@ module EC2Launcher
106
106
  @log.info(" Searching for snapshots...")
107
107
  snapshots = []
108
108
  volumes.each do |vol|
109
- volume_snaps = ec2.snapshots.filter("volume-id", vol.id)
110
- snapshots += volume_snaps
109
+ volume_snaps = ec2.snapshots.filter("volume-id", vol.volume.id)
110
+ volume_snaps.each {|volume_snapshot| snaphots << volume_snapshot }
111
111
  end
112
112
 
113
113
  @log.info(" Deleting #{snapshots.size} snapshots...")
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2012 Sean Laurent
3
3
  #
4
4
  module EC2Launcher
5
- VERSION = "1.4.0"
5
+ VERSION = "1.4.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: