Sha256: ab92f39d7900c157bc962283a1e112adeb9e911934bf6e5f958bcb633d6f9b57
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
module Exlibris module Aleph class Tasks class << self def rake_tasks(&blk) @rake_tasks ||= [] @rake_tasks << blk if blk @rake_tasks end end rake_tasks do load "tasks/exlibris-aleph_tasks.rake" end require 'rake' extend Rake::DSL self.rake_tasks.each { |block| self.instance_exec(app, &block) } # Also load tasks from all superclasses klass = self.superclass while klass.respond_to?(:rake_tasks) klass.rake_tasks.each { |t| self.instance_exec(app, &t) } klass = klass.superclass end end end end
Version data entries
6 entries across 6 versions & 1 rubygems