aws_helper 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c21c3bad099d3c6e68f8251ecbaa031a19b6d1b
4
- data.tar.gz: c6a7b4956c233c3d7fdd9fadba7981bf1d4470fe
3
+ metadata.gz: f72663aa5928cd0380ffc0d8b1e7468392c42a49
4
+ data.tar.gz: 8f4ec0c6f4cc20c1df6e6dc20d0f36dd3272dedc
5
5
  SHA512:
6
- metadata.gz: 463ea9ac27b4d42629d3c6ce77b5795958d4e254890617c3356940cdc501952987893d9da3ab5395df7d90c908d478a5c030448950c06eeac5addf564cbbb7e5
7
- data.tar.gz: 9b3e5cbcc6c185e659dca1814d8c278bf8fcf67dc0212eedfd09726401213989eacc18824e86e1127c2d6e07dfeba1fa96a247a81489fab6aca205c43e84a652
6
+ metadata.gz: e41d177d534ee7e4e81a5574d5fba8881c33c586b08e6e6f3b2051ed31b5e74ee406cc4ff981db86ff0c6f2deba782466ad48220e99a68d0050d6ccd9224ef40
7
+ data.tar.gz: 66a7b77a2950f8fddf7df073329a0bbc8a760b7523e45ca94ffc078bf8089cf2680b43b6c3812528c9b9335ead3da183a235b955f80d3e592267e87145d0a61f
data/lib/awshelper/cli.rb CHANGED
@@ -185,8 +185,7 @@ long_desc <<-LONGDESC
185
185
  LONGDESC
186
186
 
187
187
  def ebs_cleanup()
188
- response = ec2.describe_volumes()
189
- response.each do |r|
188
+ ec2.describe_volumes(:filters => { 'status' => 'available', 'size' => '8' }).each do |r|
190
189
  if r[:aws_size] == 8 and r[:aws_status] == 'available' and r[:tags] == {} and r[:snapshot_id] != nil and r[:snapshot_id][0,5] == 'snap-' then
191
190
  log("Deleting unused volume #{r[:aws_id]} from snapshot #{r[:snapshot_id]}")
192
191
  ec2.delete_volume(r[:aws_id])
@@ -1,3 +1,3 @@
1
1
  module Awshelper
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-08 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: right_aws
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project: "[none]"
77
- rubygems_version: 2.2.2
77
+ rubygems_version: 2.2.3
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Aws Helper for an instance