chef 0.9.0.a92 → 0.9.0.b01
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/lib/chef/knife/ssh.rb +4 -1
- data/lib/chef/provider/service/simple.rb +1 -1
- data/lib/chef/version.rb +1 -1
- metadata +2 -2
data/lib/chef/knife/ssh.rb
CHANGED
|
@@ -186,7 +186,10 @@ class Chef
|
|
|
186
186
|
|
|
187
187
|
def screen
|
|
188
188
|
tf = Tempfile.new("knife-ssh-screen")
|
|
189
|
-
|
|
189
|
+
if File.exist? "#{ENV["HOME"]}/.screenrc"
|
|
190
|
+
tf.puts("source #{ENV["HOME"]}/.screenrc")
|
|
191
|
+
end
|
|
192
|
+
tf.puts("caption always '%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<'")
|
|
190
193
|
tf.puts("hardstatus alwayslastline 'knife ssh #{@name_args[0]}'")
|
|
191
194
|
window = 0
|
|
192
195
|
session.servers_for.each do |server|
|
|
@@ -56,7 +56,7 @@ class Chef
|
|
|
56
56
|
end
|
|
57
57
|
status = popen4(ps_cmd) do |pid, stdin, stdout, stderr|
|
|
58
58
|
r = Regexp.new(@new_resource.pattern)
|
|
59
|
-
Chef::Log.debug "#{@new_resource}: attempting to match '#{@new_resource.pattern}' (#{r}) against process list"
|
|
59
|
+
Chef::Log.debug "#{@new_resource}: attempting to match '#{@new_resource.pattern}' (#{r.inspect}) against process list"
|
|
60
60
|
stdout.each_line do |line|
|
|
61
61
|
if r.match(line)
|
|
62
62
|
@current_resource.running true
|
data/lib/chef/version.rb
CHANGED