Sha256: edef12829c42101f8370f3a36b2804601ef9ed710840f3922ad8e41a026ea79d

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

module TaskMapper::Provider
  # This is the Tester Provider
  #
  # It doesn't really do anything, it exists in order to test the basic functionality of taskmapper
  # and to provide an example the basics of what is to be expected from the providers.
  # 
  # Note that the initial provider name is a module rather than a class. TaskMapper.new
  # extends on an instance-based fashion. If you would rather initialize using code that is 
  # closer to:
  # 
  #    TaskMapper::Provider::Tester.new(authentication)
  #
  # You will have to do a little magic trick and define new on the provider as a wrapper
  # around the TaskMapper.new call.
  module Tester
    include TaskMapper::Provider::Base
    # An example of what to do if you would like to do TaskMapper::Provider::Tester.new(...)
    # rather than TaskMapper.new(:tester, ...)
    def self.new(authentication = {})
      TaskMapper.new(:tester, authentication)
      # maybe do some other stuff
    end
  end
end

%w| project ticket comment |.each do |f|
  require File.dirname(__FILE__) + '/' + f +'.rb'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
taskmapper-1.0.1 lib/taskmapper/tester/tester.rb
taskmapper-1.0.0 lib/taskmapper/tester/tester.rb
taskmapper-0.9.0 lib/taskmapper/tester/tester.rb
taskmapper-0.8.1 lib/taskmapper/tester/tester.rb
taskmapper-0.8.0 lib/taskmapper/tester/tester.rb