crowbar/barclamp-crowbar — pull request #654 by cloudedge (2013-08-12 17:32:59+00:00)
Title: start using the deployment roles! [1/2]

This pull includes the first workings of the Deployment Role system

In this pull, I make sure that we have a deployment role when we
add a node role to a deployment snapshot.

Next steps will be to allow you to add deployment roles indepently.

crowbar_framework/app/models/barclamp.rb | 4 +-
crowbar_framework/app/models/deployment_role.rb | 17 +++--
crowbar_framework/app/models/node.rb | 4 +-
crowbar_framework/app/models/node_role.rb | 5 +-
crowbar_framework/app/models/role.rb | 75 +++++++++++---------
crowbar_framework/app/models/snapshot.rb | 7 +-
.../app/views/deployments/show.html.haml | 3 +
.../app/views/node_roles/show.html.haml | 5 +-
crowbar_framework/config/locales/crowbar/en.yml | 1 +
.../db/migrate/20120731310000_create_node_roles.rb | 2 -
10 files changed, 69 insertions(+), 54 deletions(-)

Crowbar-Pull-ID: c6df986f158ec88b14a204d7db18f37688cbc3ea

Crowbar-Release: development