This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StateTrack | |
def initialize | |
@state = :initialized | |
end | |
# Expected state transition: | |
# :initialized -> :starting -> :running -> :shuttingdown -> :terminated | |
def process_event(ev, *args) | |
case [ev, @state] | |
when [:on_start, :initialized] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ `uname` = "SunOS" ]; then | |
alias grep='/usr/gnu/bin/grep' | |
fi |
NewerOlder