Sha256: 41c43d7b1a77c0cc9baba60e5edfd65825317dc62d77463755c48ea00f90e946

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

module Exlibris
  module Aleph
    if defined?(::Rails) && ::Rails.version >= '3.1.0'
      class Railtie < Rails::Railtie
        rake_tasks do
          load "tasks/exlibris-aleph_tasks.rake"
        end
      end
    else
      require 'rake'
      class TaskInstaller
        include Rake::DSL if defined? Rake::DSL
        class << self
          def install_tasks
            @rake_tasks ||= []
            @rake_tasks << load("tasks/exlibris-aleph_tasks.rake")
            @rake_tasks
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exlibris-aleph-1.0.2 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.1 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.0 lib/exlibris/aleph/task_installer.rb