# File lib/deltacloud/state_machine.rb, line 34 def state(name) state = @states.find{|e| e.name == name.to_sym} if ( state.nil? ) state = State.new( self, name.to_sym ) @states << state end state end