crowbar/barclamp-crowbar — pull request #409 by cloudedge (2013-02-27 04:46:44+00:00)
Title: Barclamp Create Deployment (and UI refactoring) [1/2]

This pull request adds the ability to CREATE A DEPLOYMENT
from the API.

The changes include many tweaks the the UI routes and pages
including the ability to display a deployment on the barclamp page.

Many small UI items were fixed in this pull.

Also, there was a substantial amount of test coverage via BDD
added in this pull. I am not only ocvering all the new
deployment functions, I also fixed a lot of UI and REST tests
that had been broken and were related to work I was doing.

Part of this pull includes continued pruning of the routes file
to support engines migration.

BDD/bdd_restrat.erl | 24 ++-
BDD/bdd_webrat.erl | 6 +-
BDD/crowbar.erl | 3 +-
BDD/crowbar_rest.erl | 9 +
BDD/deployment.erl | 25 ++-
BDD/dev.config | 18 +-
BDD/dev.erl | 12 +-
BDD/features/barclamp.feature | 17 +-
BDD/features/bulk_edit.feature | 11 +-
BDD/features/deployment.feature | 78 +++----
BDD/features/navigation.feature | 4 +-
BDD/features/node.feature | 6 +-
BDD/node.erl | 8 +
bin/dev_mode.sh | 25 ++-
.../app/controllers/application_controller.rb | 2 +-
.../app/controllers/attribs_controller.rb | 2 +-
.../app/controllers/barclamp_controller.rb | 31 ++-
.../app/controllers/barclamp_roles_controller.old | 46 +++++
.../app/controllers/barclamp_roles_controller.rb | 46 -----
.../app/controllers/barclamps_controller.rb | 2 +-
.../app/controllers/dashboard_controller.rb | 148 +++++++++++++
.../app/controllers/deployments_controller.rb | 8 +-
.../app/controllers/nodes_controller.rb | 153 +-------------
.../app/views/barclamp/_index.html.haml | 25 +--
.../app/views/dashboard/families.html.haml | 27 +++
.../app/views/dashboard/index.html.haml | 217 ++++++++++++++++++++
.../app/views/dashboard/list.html.haml | 84 ++++++++
.../app/views/deployments/_new.html.haml | 1 +
.../app/views/deployments/_show.html.haml | 3 +
.../app/views/nodes/families.html.haml | 27 ---
crowbar_framework/app/views/nodes/index.html.haml | 217 --------------------
crowbar_framework/app/views/nodes/list.html.haml | 83 --------
crowbar_framework/config/locales/crowbar/en.yml | 14 +-
crowbar_framework/config/routes.rb | 25 ++-
.../db/migrate/20120723233100_create_navs.rb | 8 +-
35 files changed, 739 insertions(+), 676 deletions(-)

Crowbar-Pull-ID: d32341b46583738f3a6312b2b5f9eb2b6b3288a3

Crowbar-Release: development