crowbar/barclamp-crowbar — pull request #495 by VictorLowther (2013-03-27 03:26:45+00:00)
Title: Goodbye, RoleType. [1/2]

Zap role_types. They were not being used for any purpose other than
to have a different place to name a role that was not being kept in
sync with the roles table, and the codebase dealing with roles is
simpler without having them around.

BDD/features/role_type.feature | 22 -----
BDD/features/scaffolds.feature | 13 ---
BDD/role_type.erl | 60 ------------
.../app/controllers/role_types_controller.rb | 35 -------
.../controllers/scaffolds/role_types_controller.rb | 19 ----
crowbar_framework/app/models/attrib.rb | 5 +-
crowbar_framework/app/models/barclamp.rb | 26 +++---
.../barclamp_crowbar/attrib_has_deployment.rb | 28 ------
.../app/models/barclamp_crowbar/barclamp.rb | 4 +-
crowbar_framework/app/models/role.rb | 25 ++---
crowbar_framework/app/models/role_type.rb | 56 -----------
crowbar_framework/app/models/snapshot.rb | 42 ++++-----
.../app/views/barclamp/graph.html.haml | 20 ++--
.../app/views/deployments/show.html.haml | 3 +-
crowbar_framework/config/routes.rb | 2 -
.../db/migrate/20120731225504_create_role_types.rb | 26 ------
.../db/migrate/20120731225510_create_roles.rb | 6 +-
.../20120731230001_barclamp_import_crowbar.rb | 2 +-
.../test/unit/attrib_has_deployment_test.rb | 13 +--
.../test/unit/barclamp_import_test.rb | 4 +-
crowbar_framework/test/unit/barclamp_model_test.rb | 5 -
.../test/unit/barclamp_node_data_test.rb | 21 ++---
.../test/unit/deployment_model_test.rb | 8 +-
crowbar_framework/test/unit/node_model_test.rb | 2 +-
crowbar_framework/test/unit/role_model_test.rb | 80 +---------------
.../test/unit/role_type_model_test.rb | 97 --------------------
crowbar_framework/test/unit/snapshot_model_test.rb | 9 +-
27 files changed, 76 insertions(+), 557 deletions(-)

Crowbar-Pull-ID: f5766c096e030450e3b5195fbf0241607e78a313

Crowbar-Release: development