veewee 0.1.6 → 0.1.7

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veewee (0.1.6)
4
+ veewee (0.1.7)
5
5
  highline (~> 1.6.1)
6
6
  net-ssh (~> 2.1.0)
7
7
  popen4 (~> 0.1.2)
@@ -280,7 +280,7 @@ module Veewee
280
280
 
281
281
  Veewee::Ssh.when_ssh_login_works("localhost",ssh_options) do
282
282
 
283
- Veewee::Ssh.transfer_file("localhost",filename,ssh_options)
283
+ Veewee::Ssh.transfer_file("localhost",filename,File.basename(filename),ssh_options)
284
284
  command=@definition[:sudo_cmd]
285
285
  command.gsub!(/%p/,"#{@definition[:ssh_password]}")
286
286
  command.gsub!(/%u/,"#{@definition[:ssh_user]}")
data/lib/veewee/ssh.rb CHANGED
@@ -35,6 +35,7 @@ module Veewee
35
35
 
36
36
 
37
37
  def self.transfer_file(host,filename,destination = '.' , options = {})
38
+
38
39
  Net::SSH.start( host,options[:user],options ) do |ssh|
39
40
  puts "Transferring #{filename} to #{destination} "
40
41
  ssh.scp.upload!( filename, destination ) do |ch, name, sent, total|
@@ -1,3 +1,3 @@
1
1
  module Veewee
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Debois