wordmove-sshbump 0.1.1 → 0.1.2

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.
@@ -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::SCP.download!(options.ssh.host, options.ssh.username, source_file, destination_file, @ssh_extras )
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::SCP.upload!(options.ssh.host, options.ssh.username, source_file, destination_file, @ssh_extras )
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)
@@ -1,3 +1,3 @@
1
1
  module Wordmove
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefano Verna