Adam Spiers 2036cbc223 eliminate "superclass mismatch for class Resource" error
Previously libraries/pacemaker/mixins/resource_meta.rb had:

  module Pacemaker
    class Resource
      module Meta
        ...

but libraries/pacemaker/resource.rb had:

  module Pacemaker
    class Resource < Pacemaker::CIBObject
      ...

This would work fine if libraries/pacemaker/resource.rb was loaded
before libraries/pacemaker/mixins/resource_meta.rb, because then
Pacemaker::Resource would have Pacemaker::CIBObject as its parent class,
and the mixin would simply add the Meta module within the existing
Pacemaker::Resource class.  However, due to Chef's somewhat erratic
method of loading libraries, sometimes it could happen the other way
around, in which case Pacemaker::Resource would be initially defined by
the mixin with no parent class, and then when resource.rb was loaded, it
would attempt to redefine Resource to have a parent class, triggering
the error.
2014-03-13 20:38:35 +00:00
..
2014-03-13 20:02:24 +00:00
2014-02-12 14:00:45 +00:00