crowbar/barclamp-test — pull request #47 by cloudedge (2013-08-12 01:37:04+00:00)
Title: Start change from mixin to role subclass (step 1) [2/2]

This is a refactoring that Victor and I discussed after reviewing the mixin code for Role.

Since we are overriding the same methods for roles, the Rails subclass model will work better
and more simply.

This pull begins to put the infrastructure in place to have roles discover their subclass type
based on the role name. The test barclamp will be the first one to use this functionality.

This change was needed at this time to create test infrastructure for the deployment annealer.

crowbar.yml | 4 +---
.../app/models/barclamp_test/admin.rb | 19 +++++++++++++++++++
.../app/models/barclamp_test/barclamp.rb | 4 ++--
.../app/models/barclamp_test/client.rb | 19 +++++++++++++++++++
.../app/models/barclamp_test/discovery.rb | 19 +++++++++++++++++++
.../app/models/barclamp_test/library.rb | 19 +++++++++++++++++++
.../app/models/barclamp_test/server.rb | 19 +++++++++++++++++++
7 files changed, 98 insertions(+), 5 deletions(-)

Crowbar-Pull-ID: 908ab5b669db0b558048961fc2ba210774596259

Crowbar-Release: development