Sha256: fbc8cd9b04916c681cd5d28e7b70a7396237a96d68c394ba5b54cba4d284ff47

Contents?: true

Size: 614 Bytes

Versions: 71

Compression:

Stored size: 614 Bytes

Contents

module Docman
  module Taggers
    class Tagger < Docman::Command

      @@taggers = {}

      #todo: docroot config in separate repos for projects

      def self.create(params, context = nil, caller = nil)
        c = @@taggers[params['handler']]
        if c
          c.new(params, context, caller, 'tagger')
        else
          raise "Bad tagger type: #{type}"
        end
      end

      def self.register_tagger(name)
        @@taggers[name] = self
      end

      def initialize(params, context = nil, caller = nil, type = nil)
        super(params, context, caller, type)
      end

    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
docman-0.0.85 lib/docman/taggers/tagger.rb
docman-0.0.84 lib/docman/taggers/tagger.rb
docman-0.0.83 lib/docman/taggers/tagger.rb
docman-0.0.82 lib/docman/taggers/tagger.rb
docman-0.0.81 lib/docman/taggers/tagger.rb
docman-0.0.80 lib/docman/taggers/tagger.rb
docman-0.0.79 lib/docman/taggers/tagger.rb
docman-0.0.78 lib/docman/taggers/tagger.rb
docman-0.0.77 lib/docman/taggers/tagger.rb
docman-0.0.76 lib/docman/taggers/tagger.rb
docman-0.0.75 lib/docman/taggers/tagger.rb
docman-0.0.74 lib/docman/taggers/tagger.rb
docman-0.0.73 lib/docman/taggers/tagger.rb
docman-0.0.72 lib/docman/taggers/tagger.rb
docman-0.0.71 lib/docman/taggers/tagger.rb
docman-0.0.70 lib/docman/taggers/tagger.rb
docman-0.0.69 lib/docman/taggers/tagger.rb
docman-0.0.68 lib/docman/taggers/tagger.rb
docman-0.0.67 lib/docman/taggers/tagger.rb
docman-0.0.66 lib/docman/taggers/tagger.rb