crowbar/barclamp-crowbar — pull request #719 by cloudedge (2013-10-06 05:43:13+00:00)
Title: Attach Nodes to Deployments (start of Deployment parenting) & UI tweaks to bootstrap [1/1]

Most of this pull creates the basic node.deployment relationship with BDD tests

You can set the deployment from the API only for now.
The default deployment is "system"

There are tests that confirm the API can set the deployment and the default is "system"

Removed from CB1 cruft from nodes_controller.

UI Tweaks including:
Make path correct
Change button from Put to Get (takes you to the annealer)
Change Annelear API Match to Get
Remove Anneal button from Annealer screen (it's AUTOMATIC now)

Next Step: allow deployments to have parents (default to system, don't allow changing).

BDD/bdd_restrat.erl | 13 +-
BDD/crowbar.erl | 2 +-
BDD/features/node.feature | 40 +++---
BDD/node.erl | 3 +-
.../app/controllers/nodes_controller.rb | 149 +-------------------
crowbar_framework/app/models/deployment.rb | 1 +
crowbar_framework/app/models/node.rb | 12 +-
.../app/views/node_roles/anneal.html.haml | 2 -
crowbar_framework/app/views/nodes/_show.html.haml | 8 +-
.../app/views/support/bootstrap.html.haml | 4 +-
crowbar_framework/config/locales/crowbar/en.yml | 1 +
crowbar_framework/config/routes.rb | 2 +-
.../db/migrate/20120731225516_create_nodes.rb | 1 +
13 files changed, 55 insertions(+), 183 deletions(-)

Crowbar-Pull-ID: fb768ff218c0dbef628914f57c9fc940a8ec8fa0

Crowbar-Release: development