diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2008-12-15 11:54:55 -0500 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2008-12-15 11:54:55 -0500 |
commit | 6b4755d56b04d69d453b63b15219448864325b2d (patch) | |
tree | cb9e69718ef14dcae1fd356db527c980fec46b63 | |
parent | cbb7f144560c05073914c77e26c8c5fdb8d8c990 (diff) | |
download | upstate-6b4755d56b04d69d453b63b15219448864325b2d.tar.gz upstate-6b4755d56b04d69d453b63b15219448864325b2d.tar.xz upstate-6b4755d56b04d69d453b63b15219448864325b2d.zip |
Make print_all_color print on one line
-rw-r--r-- | state.rb | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |