wordmove-sshbump 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wordmove/hosts/remote_host.rb +4 -4
- data/lib/wordmove/version.rb +1 -1
- metadata +3 -3
@@ -14,7 +14,7 @@ module Wordmove
|
|
14
14
|
|
15
15
|
def session
|
16
16
|
logger.verbose "Connecting to #{options.ssh.host}..." unless @session.present?
|
17
|
-
@session ||= Net::SSH.start(options.ssh.host, options.ssh.username, @
|
17
|
+
@session ||= Net::SSH.start(options.ssh.host, options.ssh.username, @ssh_extras )
|
18
18
|
end
|
19
19
|
|
20
20
|
def close
|
@@ -23,13 +23,13 @@ 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::SCP.download!(options.ssh.host, options.ssh.username, source_file, destination_file, @
|
26
|
+
Net::SCP.download!(options.ssh.host, options.ssh.username, source_file, destination_file, @ssh_extras )
|
27
27
|
end
|
28
28
|
|
29
29
|
def download_file(source_file, destination_file)
|
30
30
|
logger.verbose "Copying local #{source_file} to #{destination_file}..."
|
31
|
-
puts "SSH options: #{@
|
32
|
-
Net::SCP.upload!(options.ssh.host, options.ssh.username, source_file, destination_file, @
|
31
|
+
puts "SSH options: #{@ssh_extras.inspect}"
|
32
|
+
Net::SCP.upload!(options.ssh.host, options.ssh.username, source_file, destination_file, @ssh_extras )
|
33
33
|
end
|
34
34
|
|
35
35
|
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: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stefano Verna
|