Sha256: 54b771999971ed060322e823c2129118a387941754784e16d265526499ad8696

Contents?: true

Size: 384 Bytes

Versions: 102

Compression:

Stored size: 384 Bytes

Contents

require 'net/sftp'

module Docman

  class TargetChecker < Docman::Command
    @@checkers = {}

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

    def self.register_checker(name)
      @@checkers[name] = self
    end

  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
docman-0.0.107 lib/docman/commands/target_checker.rb
docman-0.0.106 lib/docman/commands/target_checker.rb
docman-0.0.105 lib/docman/commands/target_checker.rb
docman-0.0.104 lib/docman/commands/target_checker.rb
docman-0.0.103 lib/docman/commands/target_checker.rb
docman-0.0.102 lib/docman/commands/target_checker.rb
docman-0.0.101 lib/docman/commands/target_checker.rb
docman-0.0.100 lib/docman/commands/target_checker.rb
docman-0.0.99 lib/docman/commands/target_checker.rb
docman-0.0.98 lib/docman/commands/target_checker.rb
docman-0.0.97 lib/docman/commands/target_checker.rb
docman-0.0.96 lib/docman/commands/target_checker.rb
docman-0.0.95 lib/docman/commands/target_checker.rb
docman-0.0.94 lib/docman/commands/target_checker.rb
docman-0.0.93 lib/docman/commands/target_checker.rb
docman-0.0.92 lib/docman/commands/target_checker.rb
docman-0.0.91 lib/docman/commands/target_checker.rb
docman-0.0.90 lib/docman/commands/target_checker.rb
docman-0.0.89 lib/docman/commands/target_checker.rb
docman-0.0.88 lib/docman/commands/target_checker.rb