wordmove-sshbump 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wordmove/hosts/remote_host.rb +6 -2
- data/lib/wordmove/version.rb +1 -1
- metadata +3 -3
@@ -23,13 +23,17 @@ module Wordmove
|
|
23
23
|
|
24
24
|
def upload_file(source_file, destination_file)
|
25
25
|
logger.verbose "Copying remote #{source_file} to #{destination_file}..."
|
26
|
-
Net::
|
26
|
+
Net::SSH.start options.ssh.host, options.ssh.username, @ssh_extras do |ssh|
|
27
|
+
ssh.scp.download! source_file, destination_file
|
28
|
+
end
|
27
29
|
end
|
28
30
|
|
29
31
|
def download_file(source_file, destination_file)
|
30
32
|
logger.verbose "Copying local #{source_file} to #{destination_file}..."
|
31
33
|
puts "SSH options: #{@ssh_extras.inspect}"
|
32
|
-
Net::
|
34
|
+
Net::SSH.start options.ssh.host, options.ssh.username, @ssh_extras do |ssh|
|
35
|
+
ssh.scp.upload! source_file, destination_file,
|
36
|
+
end
|
33
37
|
end
|
34
38
|
|
35
39
|
def download_dir(source_dir, destination_dir)
|
data/lib/wordmove/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordmove-sshbump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stefano Verna
|