summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-12-15 11:54:55 -0500
committerCasey Dahlin <cdahlin@redhat.com>2008-12-15 11:54:55 -0500
commit6b4755d56b04d69d453b63b15219448864325b2d (patch)
treecb9e69718ef14dcae1fd356db527c980fec46b63
parentcbb7f144560c05073914c77e26c8c5fdb8d8c990 (diff)
downloadupstate-6b4755d56b04d69d453b63b15219448864325b2d.tar.gz
upstate-6b4755d56b04d69d453b63b15219448864325b2d.tar.xz
upstate-6b4755d56b04d69d453b63b15219448864325b2d.zip
Make print_all_color print on one line
-rw-r--r--state.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/state.rb b/state.rb
index 94fca64..23bf463 100644
--- a/state.rb
+++ b/state.rb
@@ -290,9 +290,7 @@ class State
# Print color string reps of all states
def State.print_all_color
- @@states.each do |s|
- puts s.to_s_color if s.is_a? self
- end
+ puts @@states.select{ |s| s.is_a? self }.map{ |s| s.to_s_color }.join(", ")
end
# Look at the list of active states and see how the deps of this state could