crowbar/barclamp-crowbar — pull request #428 by cloudedge (2013-03-03 00:44:28+00:00)
Title: Snapshot role_order working to support attribute injection [1/1]

This pull (which supercedes unpulled #427) includes the Snapshot.role_order.

The role_order method creates a role version of the element_order from the template.

This pull fixes the import template so that the data is captured.
It also updates the barclamp graph UI so that role orders are exposed

BDD/features/deployment.feature | 1 +
.../app/controllers/application_controller.rb | 2 +-
.../app/controllers/nodes_controller.rb | 17 ++++-
crowbar_framework/app/models/barclamp.rb | 35 +++++----
.../app/models/barclamp_crowbar/attrib_has_node.rb | 69 ++++++++++++++++--
crowbar_framework/app/models/node.rb | 74 +++++++++++---------
crowbar_framework/app/models/snapshot.rb | 17 +++++
.../app/views/barclamp/graph.html.haml | 6 +-
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 +-
13 files changed, 193 insertions(+), 63 deletions(-)

Crowbar-Pull-ID: 15786ccca8c33b2c5a7088f09e8168002065c141

Crowbar-Release: development