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.45 lib/docman/taggers/tagger.rb
docman-0.0.44 lib/docman/taggers/tagger.rb
docman-0.0.43 lib/docman/taggers/tagger.rb
docman-0.0.42 lib/docman/taggers/tagger.rb
docman-0.0.41 lib/docman/taggers/tagger.rb
docman-0.0.40 lib/docman/taggers/tagger.rb
docman-0.0.39 lib/docman/taggers/tagger.rb
docman-0.0.38 lib/docman/taggers/tagger.rb
docman-0.0.37 lib/docman/taggers/tagger.rb
docman-0.0.36 lib/docman/taggers/tagger.rb
docman-0.0.35 lib/docman/taggers/tagger.rb
docman-0.0.34 lib/docman/taggers/tagger.rb
docman-0.0.33 lib/docman/taggers/tagger.rb
docman-0.0.32 lib/docman/taggers/tagger.rb
docman-0.0.31 lib/docman/taggers/tagger.rb
docman-0.0.30 lib/docman/taggers/tagger.rb
docman-0.0.29 lib/docman/taggers/tagger.rb
docman-0.0.28 lib/docman/taggers/tagger.rb
docman-0.0.27 lib/docman/taggers/tagger.rb
docman-0.0.26 lib/docman/taggers/tagger.rb