sftp-sync 0.1.3 → 0.1.4

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: fb0cca0ee95ed24c2142f581adc73cf1599d8b16
4
- data.tar.gz: 362efe2681388e8376547468dc848454a00535ea
3
+ metadata.gz: b940972ebdbb1cf525baed9f115e21c79a7b96b0
4
+ data.tar.gz: e55f6e0790c77faddea7881f2007558032f8effe
5
5
  SHA512:
6
- metadata.gz: 5fa87d32d9cf9673bf969458e05c15960d4f9df541b6d864dfd268cf510d696a2edfb92103043b46f23a754ccb2e46ee11f8e1254a15de206d90a94799199f45
7
- data.tar.gz: 5347b71e6013475a41a1610bf20e55cba77c7355d0bb329c86d10ae507922425dd01c72045b73a232912de493d95259c5c61cccb7a05d0fa6adb5e811b329be2
6
+ metadata.gz: f914586c9e66235f23ab7a68b583f0bcf23a9d8d5e436d5a108691f02e571ad563392dc1dadbcbaca73dd7a40f6bfdcb1dfcf9f5767f5a5763c4ede0c554fa43
7
+ data.tar.gz: 74a78b5f6d1fee8beda48007b0cacdb28db8be71cc0d3fd4c33154c50d55480ee649e21bea4655db7d24739e991d7225eb8b6e9ba7d9a0e0a4d2dba945a98d30
@@ -80,13 +80,15 @@ module Sftp
80
80
 
81
81
  diff_map = build_diff_map
82
82
 
83
+ output_path = File.expand_path(config.output_dir)
84
+
83
85
  # list the entries in a directory
84
86
  session.dir.glob("/", "**/*") do |entry|
85
87
 
86
88
  unless entry.directory? || filter.match(entry.name)
87
89
 
88
90
  src = entry.name
89
- dest = File.join(config.output_dir, entry.name)
91
+ dest = File.join(output_path, entry.name)
90
92
 
91
93
  dest_dir = File.dirname(dest)
92
94
  FileUtils.mkdir_p dest_dir unless Dir.exists?(dest_dir)
@@ -111,7 +113,7 @@ module Sftp
111
113
 
112
114
  diff_map.local_entries.each do |entry|
113
115
 
114
- target = File.join(config.output_dir, entry.name)
116
+ target = File.join(output_path, entry.name)
115
117
 
116
118
 
117
119
  if config.remove_local?
@@ -1,5 +1,5 @@
1
1
  module Sftp
2
2
  module Sync
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sftp-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Bryant
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor