crowbar/barclamp-crowbar — pull request #565 by cloudedge (2013-06-30 15:57:55+00:00)
Title: Refactoring WIP with model as per discussions and engine migrations (resubmitted #2) [1/7]

This is a preliminary step for refactoring where a lot of old models have been removed
and new ones added.

I'm pulling out old code and migrating to models

crowbar.yml files are starting to change
new jigs/roles templates are in place
dramatically simplifed way docs are discovered
removing old routes that we want to eliminate

STATUS:
YES> database migrations
YES> the web app running
NO> rspec tests are passing
NO> unit tests are passing
NO> bdd tests are passing
NO> basic UI screens for nodes, roles, barclamps, etc
NO> all core barclamps are updated

BDD/features/attrib_type.feature | 27 -
BDD/features/navigation.feature | 36 -
BDD/features/scaffolds.feature | 43 --
BDD/features/snapshot.feature | 22 -
crowbar.yml | 15 +-
crowbar_framework/Gemfile | 1 -
.../app/controllers/attrib_types_controller.rb | 35 -
.../app/controllers/deployment_roles_controller.rb | 19 +
.../app/controllers/docs_controller.rb | 10 +-
.../app/controllers/node_roles_controller.rb | 19 +
.../scaffolds/attrib_types_controller.rb | 19 -
.../scaffolds/deployment_roles_controller.rb | 20 +
.../controllers/scaffolds/jig_events_controller.rb | 19 -
.../controllers/scaffolds/jig_maps_controller.rb | 19 -
.../controllers/scaffolds/jig_runs_controller.rb | 19 -
.../controllers/scaffolds/node_roles_controller.rb | 20 +
.../app/controllers/scaffolds/os_controller.rb | 19 -
.../scaffolds/os_packages_controller.rb | 19 -
.../scaffolds/role_requires_controller.rb | 20 +
crowbar_framework/app/models/attrib.rb | 133 +---
crowbar_framework/app/models/attrib_type.rb | 62 --
crowbar_framework/app/models/barclamp.rb | 400 ++---------
.../app/models/barclamp_crowbar/attrib_default.rb | 25 +-
.../barclamp_crowbar/attrib_has_deployment.rb | 58 --
.../app/models/barclamp_crowbar/attrib_has_node.rb | 95 ---
.../app/models/barclamp_crowbar/barclamp.rb | 64 --
.../app/models/barclamp_crowbar/jig.rb | 12 +-
crowbar_framework/app/models/crowbar_utils.rb | 2 +-
crowbar_framework/app/models/deployment.rb | 87 ++-
crowbar_framework/app/models/deployment_role.rb | 36 +
crowbar_framework/app/models/doc.rb | 183 +----
crowbar_framework/app/models/event_queue.rb | 59 --
crowbar_framework/app/models/events/base_event.rb | 28 -
crowbar_framework/app/models/events/job_event.rb | 30 -
crowbar_framework/app/models/events/web_event.rb | 30 -
crowbar_framework/app/models/jig.rb | 152 +---
crowbar_framework/app/models/jig_event.rb | 32 -
crowbar_framework/app/models/jig_event_test.rb | 36 -
crowbar_framework/app/models/jig_map.rb | 64 --
crowbar_framework/app/models/jig_run.rb | 43 --
crowbar_framework/app/models/jig_run_chef.rb | 54 --
crowbar_framework/app/models/jig_run_test.rb | 44 --
crowbar_framework/app/models/jobs/base_job.rb | 57 --
crowbar_framework/app/models/jobs/job_mgr.rb | 137 ----
.../app/models/jobs/job_snapshot_jig_config.rb | 60 --
.../app/models/jobs/job_synth_junction.rb | 34 -
crowbar_framework/app/models/jobs/test_job.rb | 24 -
crowbar_framework/app/models/node.rb | 185 +----
crowbar_framework/app/models/node_role.rb | 59 ++
crowbar_framework/app/models/os.rb | 27 -
crowbar_framework/app/models/os_package.rb | 23 -
crowbar_framework/app/models/proposal_queue.old | 366 ----------
.../app/models/proposal_queue_item.old | 22 -
crowbar_framework/app/models/role.rb | 104 +--
crowbar_framework/app/models/role_object.old | 157 -----
crowbar_framework/app/models/role_require.rb | 22 +
crowbar_framework/app/models/service_object.old | 484 +++++++++++++
crowbar_framework/app/models/service_object.rb | 484 -------------
crowbar_framework/app/models/snapshot.rb | 132 ++--
crowbar_framework/app/views/docs/index.html.haml | 30 +-
.../config/initializers/crowbar_deployment.rb | 8 +-
crowbar_framework/config/locales/crowbar/en.old | 571 +++++++++++++++
crowbar_framework/config/locales/crowbar/en.yml | 547 ++-------------
crowbar_framework/config/locales/en.yml | 5 +-
crowbar_framework/config/navigation.rb | 14 +-
crowbar_framework/config/routes.rb | 93 +--
.../db/migrate/20120722130500_create_docs.rb | 17 +-
.../db/migrate/20120723233100_create_navs.rb | 28 +-
.../db/migrate/20120725023017_create_jig_maps.rb | 29 -
.../db/migrate/20120730225300_create_jigs.rb | 20 +-
.../migrate/20120730227000_create_attrib_types.rb | 29 -
.../db/migrate/20120730230713_create_jig_events.rb | 30 -
.../db/migrate/20120730230714_create_jig_runs.rb | 31 -
.../db/migrate/20120731225405_create_barclamps.rb | 7 +-
...20120731225436_create_barclamps_dependencies.rb | 24 -
.../20120731225446_create_barclamps_members.rb | 24 -
.../migrate/20120731225466_create_deployments.rb | 7 +-
.../db/migrate/20120731225476_create_snapshots.rb | 13 +-
.../db/migrate/20120731225510_create_roles.rb | 19 +-
.../db/migrate/20120731225516_create_nodes.rb | 16 +-
.../db/migrate/20120731225600_create_attribs.rb | 16 +-
.../20120731230001_barclamp_import_crowbar.rb | 8 +-
.../20120731300000_create_deployment_roles.rb | 27 +
.../db/migrate/20120731310000_create_node_roles.rb | 30 +
.../migrate/20120731320000_create_role_requires.rb | 25 +
.../db/migrate/20120801190200_scaffold_nav.rb | 17 +-
.../migrate/20120805215500_create_node_groups.rb | 24 +
.../migrate/20120805215500_create_nodes_groups.rb | 24 -
.../db/migrate/20120808233000_create_os.rb | 31 -
.../migrate/20120808233500_create_os_packages.rb | 26 -
.../20120810233500_create_barclamp_packages.rb | 24 -
.../db/migrate/20130221161738_dependent_job.rb | 39 --
crowbar_framework/spec/models/job_mgr_spec.rb | 154 ----
.../spec/models/proposal_queue_item_spec.old | 21 -
.../spec/models/proposal_queue_spec.old | 737 --------------------
.../spec/models/service_object_spec.old | 136 ----
.../shared_contexts/base_deployement_nodes.rb | 5 +-
.../shared_contexts/test_bc_with_2_nodes.rb | 8 +-
crowbar_framework/test/barclamp_network_test.rb | 7 -
.../test/unit/attrib_has_deployment_test.rb | 122 ----
.../test/unit/attrib_has_node_test.rb | 122 ----
.../test/unit/attrib_type_model_test.rb | 74 --
.../test/unit/barclamp_attrib_model_test.old | 114 +++
.../test/unit/barclamp_attrib_model_test.rb | 114 ---
.../test/unit/barclamp_import_test.rb | 77 --
.../test/unit/barclamp_node_data_test.rb | 128 ----
.../test/unit/jig_event_model_test.rb | 43 --
crowbar_framework/test/unit/jig_map_model_test.rb | 54 --
crowbar_framework/test/unit/jig_run_model_test.rb | 42 --
.../test/unit/proposal_config_model_test.old | 338 ---------
.../test/unit/proposal_model_test.old | 51 --
doc/devguide/model/crowbar_model.dia | Bin 3116 -> 2926 bytes
script/roles/crowbar/node-template.json | 7 +
script/roles/crowbar/role-template.json | 7 +
114 files changed, 1952 insertions(+), 6769 deletions(-)

Crowbar-Pull-ID: 05affc5047396c514209afe13a4f0835098ecf02

Crowbar-Release: development