vagrant-scp 0.5.1 → 0.5.3

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: 8977555fbbe5857f2ccc31e4c13fe3b0a9ca8983
4
- data.tar.gz: efe18aaee5ae5d92ae0af665a508659113fe8dc1
3
+ metadata.gz: 3f5e91d3b3bfd069036b1ff7e56680541948fcce
4
+ data.tar.gz: 9a36c99d99290aea2efd26dd1b1c19181e34aeb1
5
5
  SHA512:
6
- metadata.gz: 7a2e1003c2048a1e1bb2313be807fb4ce4b21f37eb2fb63634b4967b4c2dd8d9deb0678529f7ec25c3995f9c0e251ab5c4df50d73fef04498256e0ee52df59da
7
- data.tar.gz: 8f63fb3798d7ef1394244a842b454b82558f46f92494fb3fb307846f8ed786e0b051fc2f6b2ab5c32c6b240066c71d5d85a1751f917395d6006f4fa38bd021c0
6
+ metadata.gz: bce9dc351807cdde5e7a6152056a6a8ec217a26a8a51ce969ab64c50c87d3337dd754fbd7eb7764799c3472a3e9f499daff8107f810bcbdbb92c18221507bddd
7
+ data.tar.gz: ebc0bbf403458bf75f75be81b90f178d819a83a818366416624b9e5fa7497ed43fd186f2ec875bb528fffcfcdea60921af2d62265cbee777a7c617a2b5b4aae1
@@ -17,14 +17,24 @@ module VagrantPlugins
17
17
  with_target_vms(host) do |machine|
18
18
  @ssh_info = machine.ssh_info
19
19
  raise Vagrant::Errors::SSHNotReady if @ssh_info.nil?
20
-
21
- Net::SCP.send net_ssh_command,
22
- @ssh_info[:host],
23
- @ssh_info[:username],
24
- source_files,
25
- target_files,
26
- :recursive => true,
27
- :ssh => {:port => @ssh_info[:port], :keys => @ssh_info[:private_key_path]}
20
+ current_file = nil
21
+ Net::SCP.send(
22
+ net_ssh_command,
23
+ @ssh_info[:host],
24
+ @ssh_info[:username],
25
+ source_files,
26
+ target_files,
27
+ :recursive => true,
28
+ :ssh => {
29
+ :port => @ssh_info[:port],
30
+ :keys => @ssh_info[:private_key_path],
31
+ :verbose => 2}
32
+ ) do |_, name, sent, total|
33
+ message = "\r#{name}: #{(sent*100.0/total).round(3)}%"
34
+ message = "\n{message}" unless current_file == name
35
+ STDOUT.write message
36
+ current_file = name
37
+ end
28
38
  end
29
39
  end
30
40
 
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Scp
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-scp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Invernizzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler