backupsss 0.3.0 → 0.3.1

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: 473324a2ff4a2affcf336b2ac9adaf8314f3a2a8
4
- data.tar.gz: efa42347a6d6e9b4bb2d9aa7c0af3a4fac323bb0
3
+ metadata.gz: 01123ba76bfb3bdb0116a71b47cb76a0dfdbc148
4
+ data.tar.gz: f1d7dd6b3c1ba021eebf529508f8068c2628c7d7
5
5
  SHA512:
6
- metadata.gz: 970be5e7c287f045ecaed99f506291df4626746ad662ada92ac7654d37c29144c208abc09845afdbe7ea1c24ca5466124187263891edea6f6b65d8d350816227
7
- data.tar.gz: 9f32195679dcc98f7d9944a8003d5bc0c938ef3a8f06a24c44ccc1e2e32a7cfe716f3fcc72412c3a32e4f9a663fabdf88b8ccea0b3b05b4d762732c7c7368c2f
6
+ metadata.gz: 0a04cb7087063a771b3a5664e47114b6bdac1cdb970c49666bc25945464a46d885eca5f446c798da5ac3dc4e4567dfcce66134fdf8f6065f19e2a7b05d3b4cc3
7
+ data.tar.gz: c33bfd381fde84a5bd18086ce49f3afae3633212367f776b28ce5e0d7ac6c35869b33ba24bb698676bd27b88671363c7de081db06cb3ac2eb3dba03be6d81429
@@ -53,7 +53,7 @@ module Backupsss
53
53
  end
54
54
 
55
55
  def abort_multipart_message(error, upload_id)
56
- "#{error}\n#{upload_id}: Aborting multipart upload"
56
+ "#{error}\nAborting multipart upload : #{upload_id}"
57
57
  end
58
58
 
59
59
  def multi_upload(file)
@@ -74,9 +74,9 @@ module Backupsss
74
74
  def upload_parts(file, upload_id)
75
75
  Parallel.map(1..part_count(file), in_threads: 10) do |part|
76
76
  bail_upload_part_on_fail(part, upload_id) do
77
- $stdout.puts "#{upload_id}: Uploading part number #{part}\n"
77
+ $stdout.puts "Uploading part number #{part} : #{upload_id}\n"
78
78
  r = client.upload_part(upload_part_params(file, part, upload_id))
79
- success_msg = "#{upload_id}: Completed uploading part number #{part}"
79
+ success_msg = "Completed uploading part number #{part} : #{upload_id}"
80
80
  r.on_success { $stdout.puts success_msg }
81
81
 
82
82
  { etag: r.etag, part_number: part }
@@ -94,9 +94,9 @@ module Backupsss
94
94
  def bail_upload_part_on_fail(part, upload_id)
95
95
  yield
96
96
  rescue StandardError => e
97
- output = ["#{upload_id}: Failed to upload part number #{part}"]
97
+ output = ["Failed to upload part number #{part} : #{upload_id}"]
98
98
  output << "because of #{e.message}"
99
- output << "#{upload_id}: Aborting remaining parts"
99
+ output << "Aborting remaining parts : #{upload_id}"
100
100
  raise output.join("\n")
101
101
  end
102
102
 
@@ -1,3 +1,3 @@
1
1
  module Backupsss
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backupsss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reppard Walker