def get_class_from_scope(scope, name)
      klass = scope
      name = name.to_s.sub(/^Backup::Config::DSL::/, "")
      name.split("::").each do |chunk|
        klass = klass.const_get(chunk)
      end
      klass
    end
def get_class_from_scope(scope, name)
      klass = scope
      name = name.to_s.sub(/^Backup::Config::DSL::/, "")
      name.split("::").each do |chunk|
        klass = klass.const_get(chunk)
      end
      klass
    end
Returns the class/model specified by +name+ inside of +scope+.
 +scope+ should be a Class/Module.
 +name+ may be Class/Module or String representation
 of any namespace which exists under +scope+.

 The 'Backup::Config::DSL' namespace is stripped from +name+,
 since this is the namespace where we define module namespaces
 for use with Model's DSL methods.

 Examples:
   get_class_from_scope(Backup::Database, 'MySQL')
     returns the class Backup::Database::MySQL

   get_class_from_scope(Backup::Syncer, Backup::Config::RSync::Local)
     returns the class Backup::Syncer::RSync::Local