Merge pull request #120 from coreos/upstream

feat return the stateMachine
pull/820/head
Ben Johnson 2013-10-10 09:03:02 -07:00
commit 48b4bdde54
1 changed files with 5 additions and 0 deletions

View File

@ -186,6 +186,11 @@ func (s *Server) Context() interface{} {
return s.context
}
// Retrieves the state machine passed into the constructor.
func (s *Server) StateMachine() StateMachine {
return s.stateMachine
}
// Retrieves the log path for the server.
func (s *Server) LogPath() string {
return path.Join(s.path, "log")