diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2008-12-10 16:03:22 -0500 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2008-12-10 16:03:22 -0500 |
commit | 5c3a7bf109e55ecae2664032bce47506db36d9a7 (patch) | |
tree | 184e63cce50601ba17bb97fa432414ab39b18a1b | |
parent | 3e7dc13a9c298bdcbeac29071aef1339bba6e04f (diff) | |
download | upstate-5c3a7bf109e55ecae2664032bce47506db36d9a7.tar.gz upstate-5c3a7bf109e55ecae2664032bce47506db36d9a7.tar.xz upstate-5c3a7bf109e55ecae2664032bce47506db36d9a7.zip |
Add a method to print all states in color
-rw-r--r-- | state.rb | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -264,6 +264,13 @@ class State nil end + # 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 + end + # Look at the list of active states and see how the deps of this state could # be met def State.depsolve |