Refactoring WIP with model as per discussions and engine migrations [1/6]

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

YES> database migrations PASS
YES> the web app IS running (localizations are missing)
NO> tests are not passing




 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 -
 .../controllers/deployments_roles_controller.rb    |   19 +
 .../app/controllers/nodes_roles_controller.rb      |   19 +
 .../scaffolds/attrib_types_controller.rb           |   19 -
 .../scaffolds/deployments_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 -
 .../scaffolds/nodes_roles_controller.rb            |   20 +
 .../app/controllers/scaffolds/os_controller.rb     |   19 -
 .../scaffolds/os_packages_controller.rb            |   19 -
 .../scaffolds/roles_requires_controller.rb         |   20 +
 crowbar_framework/app/models/attrib.rb             |  110 +--
 crowbar_framework/app/models/attrib_type.rb        |   62 --
 crowbar_framework/app/models/barclamp.rb           |  401 ++---------
 .../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        |   44 --
 .../app/models/barclamp_crowbar/jig.rb             |   12 +-
 crowbar_framework/app/models/crowbar_utils.rb      |    2 +-
 crowbar_framework/app/models/deployment.rb         |   49 +-
 crowbar_framework/app/models/deployment_role.rb    |   24 +
 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                |   34 +-
 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               |   21 +-
 crowbar_framework/app/models/node_role.rb          |   66 ++
 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               |  114 ++-
 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 ++--
 .../config/initializers/crowbar_deployment.rb      |    8 +-
 crowbar_framework/config/locales/crowbar/en.old    |  571 +++++++++++++++
 crowbar_framework/config/locales/crowbar/en.yml    |  481 +------------
 crowbar_framework/config/locales/en.yml            |    5 +-
 crowbar_framework/config/routes.rb                 |    7 -
 .../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_deployments_roles.rb     |   26 +
 .../migrate/20120731310000_create_nodes_roles.rb   |   29 +
 .../20120731320000_create_roles_requires.rb        |   25 +
 .../db/migrate/20120801190200_scaffold_nav.rb      |   15 +-
 .../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 +
 106 files changed, 1751 insertions(+), 6127 deletions(-)

Crowbar-Pull-ID: 2ee9e50ea662cdce5d83ff9dd64487de46e013ac

Crowbar-Release: development