ebs_snapper 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/ebs_snapper.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ["lib"]
17
17
  s.version = EbsSnapper::VERSION
18
18
 
19
- s.add_runtime_dependency "aws-sdk", "~> 1.11.3"
19
+ s.add_runtime_dependency "aws-sdk", "~> 1.31.3"
20
20
 
21
21
  s.add_development_dependency "rake"
22
22
  s.add_development_dependency "rspec"
@@ -19,10 +19,11 @@ class EbsSnapper::Ebs
19
19
  DEFAULT_TAG_NAME = 'Snapper'
20
20
 
21
21
  def initialize(opts = {})
22
- AWS.config(
23
- :access_key_id => opts[:access_key_id],
24
- :secret_access_key => opts[:secret_access_key])
25
-
22
+ if !opts[:secret_access_key].nil? && !opts[:access_key_id].nil?
23
+ AWS.config(:access_key_id => opts[:access_key_id],
24
+ :secret_access_key => opts[:secret_access_key])
25
+ end
26
+
26
27
  @logger = opts[:logger] || Logger.new(STDOUT)
27
28
  @retain = opts[:retain]
28
29
  @tag_name = opts[:volume_tag] || DEFAULT_TAG_NAME # default
@@ -78,6 +79,7 @@ class EbsSnapper::Ebs
78
79
  @logger.info {"Purging #{vol_id} snapshot: #{snapshot.id}"}
79
80
  begin
80
81
  snapshot.delete
82
+ sleep 1 # we need to slow down our processing..
81
83
  rescue => e
82
84
  @logger.error "Exception: #{e}\n" + e.backtrace().join("\n")
83
85
  end
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module EbsSnapper
16
- VERSION = "0.0.6"
16
+ VERSION = "0.0.7"
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebs_snapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2014-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.11.3
21
+ version: 1.31.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.11.3
29
+ version: 1.31.3
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  segments:
113
113
  - 0
114
- hash: 2004562226822433963
114
+ hash: 1005220110206046927
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: 2004562226822433963
123
+ hash: 1005220110206046927
124
124
  requirements: []
125
125
  rubyforge_project:
126
126
  rubygems_version: 1.8.24