Sha256: eb828e4599387bdce5a9e24047d43cac6e75c1b234c32c743b551c371c2717a7

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

# Reap support
require 'reap/projectinfo'
require 'reap/task'

# Reap tasks
require 'reap/task/test'
require 'reap/task/extest'
require 'reap/task/rdoc'
require 'reap/task/announce'
require 'reap/task/package'
require 'reap/task/publish'
require 'reap/task/info'
require 'reap/task/install'
require 'reap/task/release'
require 'reap/task/doap'
require 'reap/task/manifest'
require 'reap/task/fileperm'  # needs work
#require 'reap/task/noop'


module Reap

  Version = "4.3.5"

  # Hash of all possible tasks
  # { task name => task class }

  def self.registry
    Task.task_list
  end

  # Hash of tasks available to this project

  def self.tasks
    unless @tasks
      @tasks = {}
      registry.each do |name, klass|
        @tasks[name] = klass if klass.verify?
      end
    end
    @tasks
  end

  def self.register #( alternative_project_file=nil )
    $PROJECT_INFO = ProjectInfo.load( nil, true )
    $PROJECT_INFO.exists?
  end

  def self.projectfile?
    $PROJECT_INFO.exists?
  end

#   def self.initialize
#     @tasks ||= {}
#     registry.each do |name, klass|
#       @tasks[name] = klass.new
#     end
#   end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reap-4.4.0 lib/reap/reap.rb