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.65 lib/docman/taggers/tagger.rb
docman-0.0.64 lib/docman/taggers/tagger.rb
docman-0.0.63 lib/docman/taggers/tagger.rb
docman-0.0.62 lib/docman/taggers/tagger.rb
docman-0.0.61 lib/docman/taggers/tagger.rb
docman-0.0.60 lib/docman/taggers/tagger.rb
docman-0.0.59 lib/docman/taggers/tagger.rb
docman-0.0.58 lib/docman/taggers/tagger.rb
docman-0.0.57 lib/docman/taggers/tagger.rb
docman-0.0.56 lib/docman/taggers/tagger.rb
docman-0.0.55 lib/docman/taggers/tagger.rb
docman-0.0.54 lib/docman/taggers/tagger.rb
docman-0.0.53 lib/docman/taggers/tagger.rb
docman-0.0.52 lib/docman/taggers/tagger.rb
docman-0.0.51 lib/docman/taggers/tagger.rb
docman-0.0.50 lib/docman/taggers/tagger.rb
docman-0.0.49 lib/docman/taggers/tagger.rb
docman-0.0.48 lib/docman/taggers/tagger.rb
docman-0.0.47 lib/docman/taggers/tagger.rb
docman-0.0.46 lib/docman/taggers/tagger.rb