smart_s3_sync 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smart_s3_sync.rb +1 -1
- data/lib/smart_s3_sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1767db822124a61f5d93e9b1bd028ef604ba68f9
|
4
|
+
data.tar.gz: 198cfd1033178569ae744a95e2e39a73a7666927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eabf0d9dc4cb0c6a5df75427599a8656d351c568989588a8642f3904ce047f23418f73c855e0403fb50e7ab174c8ba597a21089889181cb0536a051145ec8ac
|
7
|
+
data.tar.gz: 4850ffdd09ac303a9018a6108e3a5d734a2a3114414ce771acfbd5a6f27d5e60d10a86b35419343609ba96db2fce3ff875aaa1c0903b51c6e150e15836eadea0
|
data/lib/smart_s3_sync.rb
CHANGED
@@ -23,7 +23,7 @@ module SmartS3Sync
|
|
23
23
|
|
24
24
|
puts "\n"
|
25
25
|
puts "Status: Need to download #{table.to_download.length} files (#{table.to_download.map(&:size).inject(&:+)} bytes)"
|
26
|
-
puts "Status: with an effective total of #{table.to_copy.length} files (#{table.to_copy.map{|x| x.size * x.destinations.length }.inject(&:+)} bytes)"
|
26
|
+
puts "Status: with an effective total of #{table.to_copy.inject(0){|coll, obj| coll + obj.destinations.length }} files (#{table.to_copy.map{|x| x.size * x.destinations.length }.inject(&:+)} bytes)"
|
27
27
|
|
28
28
|
# And copy them to the right places
|
29
29
|
table.copy!(bucket)
|