Sha256: b9f8ddd0f7d73f4d6f77be3b889030d69cb85ea41a949265a16825a6564194dd

Contents?: true

Size: 580 Bytes

Versions: 10

Compression:

Stored size: 580 Bytes

Contents

require 'active_fedora/rake_support'

namespace :hydra do
  desc "Start a solr, fedora and rails instance"
  task :server do
    with_server('development') do
      IO.popen('rails server') do |io|
        begin
          io.each do |line|
            puts line
          end
        rescue Interrupt
          puts "Stopping server"
        end
      end
    end
  end

  desc "Start solr and fedora instances for tests"
  task :test_server do
    with_server('test') do
      begin
        sleep
      rescue Interrupt
        puts "Stopping server"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hydra-core-10.3.4 lib/tasks/hydra.rake
hydra-core-10.3.3 lib/tasks/hydra.rake
hydra-core-10.3.2 lib/tasks/hydra.rake
hydra-core-10.3.0 lib/tasks/hydra.rake
hydra-core-10.2.0 lib/tasks/hydra.rake
hydra-core-10.1.0 lib/tasks/hydra.rake
hydra-core-10.0.2 lib/tasks/hydra.rake
hydra-core-10.0.1 lib/tasks/hydra.rake
hydra-core-10.0.0 lib/tasks/hydra.rake
hydra-core-10.0.0.beta4 lib/tasks/hydra.rake