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.47 lib/docman/commands/target_checker.rb
docman-0.0.46 lib/docman/commands/target_checker.rb
docman-0.0.45 lib/docman/commands/target_checker.rb
docman-0.0.44 lib/docman/commands/target_checker.rb
docman-0.0.43 lib/docman/commands/target_checker.rb
docman-0.0.42 lib/docman/commands/target_checker.rb
docman-0.0.41 lib/docman/commands/target_checker.rb
docman-0.0.40 lib/docman/commands/target_checker.rb
docman-0.0.39 lib/docman/commands/target_checker.rb
docman-0.0.38 lib/docman/commands/target_checker.rb
docman-0.0.37 lib/docman/commands/target_checker.rb
docman-0.0.36 lib/docman/commands/target_checker.rb
docman-0.0.35 lib/docman/commands/target_checker.rb
docman-0.0.34 lib/docman/commands/target_checker.rb
docman-0.0.33 lib/docman/commands/target_checker.rb
docman-0.0.32 lib/docman/commands/target_checker.rb
docman-0.0.31 lib/docman/commands/target_checker.rb
docman-0.0.30 lib/docman/commands/target_checker.rb
docman-0.0.29 lib/docman/commands/target_checker.rb
docman-0.0.28 lib/docman/commands/target_checker.rb