Permalink
Browse files

don't print localhost when process is local

  • Loading branch information...
1 parent 1be83aa commit c0cf7d515c8b7b1f1b17ab079a443db4716af4d3 @adamwiggins committed Apr 19, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/rush/process.rb
View
@@ -22,7 +22,11 @@ def to_s # :nodoc:
end
def inspect # :nodoc:
- "#{box} process #{@pid}: #{@cmdline}"
+ if box.to_s != 'localhost'
+ "#{box} #{@pid}: #{@cmdline}"
+ else
+ "#{@pid}: #{@cmdline}"
+ end
end
# Returns the Rush::Process parent of this process.

0 comments on commit c0cf7d5

Please sign in to comment.