veewee 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/veewee/session.rb +1 -1
- data/lib/veewee/ssh.rb +1 -0
- data/lib/veewee/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/veewee/session.rb
CHANGED
@@ -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|
|
data/lib/veewee/version.rb
CHANGED