Sha256: 56c513be64bfe61ff7144ab7f05d38a139cf586da1642fa513bfe2d9149aa5dd

Contents?: true

Size: 576 Bytes

Versions: 4

Compression:

Stored size: 576 Bytes

Contents

require 'rscm/annotations'
require 'damagecontrol/project'

module DamageControl
  module Publisher
  
    # Base class for publishers. Subclasses must extend this class and call register self.
    class Base

      attr_accessor :enabled

      @@classes = []
      def self.register(cls) 
        @@classes << cls unless @@classes.index(cls)
      end      
      def self.classes
        @@classes
      end
  
      Dir[File.dirname(__FILE__) + "/*.rb"].each do |src|
        load(src) unless File.expand_path(src) == File.expand_path(__FILE__)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
damagecontrol-0.5.0.1391 lib/damagecontrol/publisher/base.rb
damagecontrol-0.5.0.1392 lib/damagecontrol/publisher/base.rb
damagecontrol-0.5.0.1393 lib/damagecontrol/publisher/base.rb
damagecontrol-0.5.0.1404 lib/damagecontrol/publisher/base.rb