Fixes #5062 - Use .length instead of .count (1.8 compat)
git-svn-id: file:///home/svn/framework3/trunk@13352 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
29585e0a95
commit
f1473c4cb3
|
@ -173,8 +173,8 @@ module Shell
|
|||
input.prompt.gsub!(/%U/, user.chomp)
|
||||
end
|
||||
|
||||
input.prompt.gsub!(/%S/, framework.sessions.count.to_s)
|
||||
input.prompt.gsub!(/%J/, framework.jobs.count.to_s)
|
||||
input.prompt.gsub!(/%S/, framework.sessions.length.to_s)
|
||||
input.prompt.gsub!(/%J/, framework.jobs.length.to_s)
|
||||
input.prompt.gsub!(/%L/, Rex::Socket.source_address("50.50.50.50"))
|
||||
input.prompt.gsub!(/%D/, ::Dir.getwd)
|
||||
self.init_prompt = input.prompt
|
||||
|
|
Loading…
Reference in New Issue