crowbar/barclamp-crowbar — pull request #427 by cloudedge (2013-03-02 20:33:52+00:00)
Title: Node.status wired into API node/id/transistion [1/1]

This pull links together the Attrib based Node.state and the
API node / transistion functions.

NOTE: we are currently only acecpting a VERY LIMITED set of states!

To add more states, add to the node:: list by ERROR and READY
Also, add to the hash fo BarclampCrowbar::AttribHasNode.

BDD/features/deployment.feature | 1 +
.../app/controllers/application_controller.rb | 2 +-
.../app/controllers/nodes_controller.rb | 17 ++++-
crowbar_framework/app/models/barclamp.rb | 6 +-
.../app/models/barclamp_crowbar/attrib_has_node.rb | 69 ++++++++++++++++--
crowbar_framework/app/models/node.rb | 74 +++++++++++---------
crowbar_framework/config/routes.rb | 4 +-
.../20130228163800_create_crowbar_deployment.rb | 8 +++
.../test/unit/attrib_has_node_test.rb | 18 ++++-
crowbar_framework/test/unit/barclamp_model_test.rb | 2 +-
crowbar_framework/test/unit/node_model_test.rb | 3 +-
11 files changed, 154 insertions(+), 50 deletions(-)

Crowbar-Pull-ID: 660e1a38c6f7a776a50f8bb27f7d93649247f21c

Crowbar-Release: development