ey_cloud_server 1.4.44 → 1.4.45

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
- SHA1:
3
- data.tar.gz: 27d5fc1a389e13ab538b2b06784d6d5677ed7628
4
- metadata.gz: fa093fd7b0681adf5613e12caf5f554c5af54cb8
5
2
  SHA512:
6
- data.tar.gz: c753223792819129190f6206da0e27244913b340a0f5c66ec535fd0228294028802fd41696ca72acd19f12e6a44a6fcabf862da00c91b22adc282c6d58ea80be
7
- metadata.gz: b8280026a613e2f00d2cd4431c920873840b23f663fe386da079e3b8833d483247791628eb16e1081994feebf6533721d5c0ff88ea36e0f339a5f7eb0d6d67f9
3
+ metadata.gz: 004376d1d7ead4395225b9bbb753b92af85c976b4ae2ad75d0ab2570af11c15fcb0a7a6b6383e0e78f7c57b79f3bbee1276084f56cc926da941df742c496e29e
4
+ data.tar.gz: 19aadc16a91a5791168b0abd13e0b3ccc6b69f8ac3f369b60bbe4132da06b44948d966e501aee6ecb1d8c0f4ddc456cb72bfca18c0e3c2b3a2b89b2edf263c26
5
+ SHA1:
6
+ metadata.gz: 3fd10d18083cf1a1e16e5478bf4a219cfa6f9cd7
7
+ data.tar.gz: e55c449b543dad3315089d43f93e303c45c71341
@@ -22,6 +22,8 @@ module EY
22
22
  rescue => e
23
23
  retries ||= 5
24
24
  retries -= 1
25
+ # remove partial or failed uploads
26
+ @s3.delete_object(@bucket_minder.bucket_name, object_name) rescue nil)
25
27
  raise e if retries == 0
26
28
  warn "retrying upload of #{filename}. Got: #{e.inspect}"
27
29
  retry
@@ -19,7 +19,7 @@ module EY
19
19
  end
20
20
 
21
21
  def backups
22
- s3_objects = bucket_minder.list("#{@environment}.#{@name}").select { |o| o[:name] =~ @engine.suffix }
22
+ s3_objects = bucket_minder.list("#{@environment}.#{@name}/").select { |o| o[:name] =~ @engine.suffix }
23
23
  s3_objects.map {|o| BackupSet.new(self, o[:name], nil, o[:keys]) }.sort
24
24
  end
25
25
 
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module CloudServer
3
- VERSION = '1.4.44'
3
+ VERSION = '1.4.45'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_cloud_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.44
4
+ version: 1.4.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - EngineYard
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2014-09-18 00:00:00 Z
12
+ date: 2015-01-20 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json