smart_s3_sync 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e6911a2abb1f6757312930eee53824942d0f6f2
4
- data.tar.gz: 748294de04cb5077b0ea5fd66b524f1d5dffacc6
3
+ metadata.gz: 33935c767e0745d617012d6dcde39fe056780a82
4
+ data.tar.gz: 26884d38bee3c9de06580f851caccc2950d734d4
5
5
  SHA512:
6
- metadata.gz: a44fab33e967e60faeb5d688fffbe29b3fcc3530068db5d8afccc24e082ae996397e4ecf0d4b16df82e67c83067d448e2780ec7444887db6da08c46a92a8e4df
7
- data.tar.gz: f143059f5110cdecaf202a679ce5fbf24daf632468f2d5843ff5939bf55f5c13d5209dea6db18c34e6758b27e990e5b8a86191ef0dea495fda9d30f6595e742a
6
+ metadata.gz: 757dcab598f25890989907c2bca3ed8070f1ebbe0b39fa0959a556552ba642dd43071c76a058667ee6f5ff033319ae74b8cd31480a46dd113321825bb0abf268
7
+ data.tar.gz: 1c7aa3a25367da65842e054369008a3bc54de753803289fdcdb0dbe2ccba065ed95cc92a81e06285a16018d3639d753f086237822c9b9066e124d3158f7fbf75
@@ -27,6 +27,10 @@ module SmartS3Sync
27
27
  @files.include?(filename)
28
28
  end
29
29
 
30
+ def to_copy
31
+ @map.map{|(k, target)| target.destinations }.flatten
32
+ end
33
+
30
34
  private
31
35
 
32
36
  def hash_key(fog_file)
@@ -68,6 +68,7 @@ module SmartS3Sync
68
68
  end
69
69
 
70
70
  def copy_from_local(source)
71
+ puts "retrieved #{destinations.join(', ')}"
71
72
  destinations.each do |dest|
72
73
  FileUtils.mkdir_p(File.dirname(dest))
73
74
  FileUtils.ln(source, dest, :force => true)
@@ -1,3 +1,3 @@
1
1
  module SmartS3Sync
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/smart_s3_sync.rb CHANGED
@@ -15,6 +15,8 @@ module SmartS3Sync
15
15
  # Add all files in the cloud to our map.
16
16
  bucket.files.each { |file| table.push(file) }
17
17
 
18
+ puts "To Copy: #{table.to_copy.join(', ')}"
19
+
18
20
  # And copy them to the right places
19
21
  table.copy!(bucket)
20
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_s3_sync
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
  - Chris Rhoden