Sha256: c70a3aa50a168cf757b949dca045d6bb08949d0906f9f36a96dc2d6cd47cba77

Contents?: true

Size: 618 Bytes

Versions: 7

Compression:

Stored size: 618 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
      # Install tasks
      Exlibris::Aleph::TaskInstaller.install_tasks
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
exlibris-aleph-1.1.0 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.8 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.7 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.6 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.5 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.4 lib/exlibris/aleph/task_installer.rb
exlibris-aleph-1.0.3 lib/exlibris/aleph/task_installer.rb