ztk 1.6.10 → 1.6.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ztk/ssh/bootstrap.rb +4 -1
- data/lib/ztk/ssh/file.rb +4 -1
- data/lib/ztk/version.rb +1 -1
- metadata +3 -3
data/lib/ztk/ssh/bootstrap.rb
CHANGED
@@ -29,8 +29,11 @@ module ZTK
|
|
29
29
|
:use_sudo => true
|
30
30
|
}.merge(options)
|
31
31
|
|
32
|
+
bootstrap_tempfile = ::File.basename(Tempfile.new("bootstrap"))
|
33
|
+
remote_tempfile = ::File.join("", "tmp", ::File.basename(bootstrap_tempfile.path.dup))
|
34
|
+
bootstrap_tempfile.close!
|
35
|
+
|
32
36
|
local_tempfile = Tempfile.new("tempfile-local")
|
33
|
-
remote_tempfile = ::File.join("", "tmp", ::File.basename(Tempfile.new("tempfile-remote").path.dup))
|
34
37
|
|
35
38
|
local_tempfile.puts(content)
|
36
39
|
local_tempfile.respond_to?(:flush) and local_tempfile.flush
|
data/lib/ztk/ssh/file.rb
CHANGED
@@ -27,8 +27,11 @@ module ZTK
|
|
27
27
|
target.nil? and raise SSHError, "You must supply a target file!"
|
28
28
|
!block_given? and raise SSHError, "You must supply a block!"
|
29
29
|
|
30
|
+
file_tempfile = ::File.basename(Tempfile.new("file"))
|
31
|
+
remote_tempfile = ::File.join("", "tmp", ::File.basename(file_tempfile.path.dup))
|
32
|
+
file_tempfile.close!
|
33
|
+
|
30
34
|
local_tempfile = Tempfile.new("tempfile-local")
|
31
|
-
remote_tempfile = ::File.join("", "tmp", ::File.basename(Tempfile.new("tempfile-remote").path.dup))
|
32
35
|
|
33
36
|
!block.nil? and block.call(local_tempfile)
|
34
37
|
local_tempfile.respond_to?(:flush) and local_tempfile.flush
|
data/lib/ztk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ztk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: '0'
|
276
276
|
segments:
|
277
277
|
- 0
|
278
|
-
hash:
|
278
|
+
hash: 2671191538355858046
|
279
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
280
|
none: false
|
281
281
|
requirements:
|
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
284
|
version: '0'
|
285
285
|
segments:
|
286
286
|
- 0
|
287
|
-
hash:
|
287
|
+
hash: 2671191538355858046
|
288
288
|
requirements: []
|
289
289
|
rubyforge_project:
|
290
290
|
rubygems_version: 1.8.25
|