Sha256: 8e06866898359b20f4fa2c2d807f5f8a0f9bd9e1c8b27102b3990dd20059eb05

Contents?: true

Size: 819 Bytes

Versions: 6

Compression:

Stored size: 819 Bytes

Contents

require 'solr_wrapper'
require 'fcrepo_wrapper'

namespace :geo_works do
  desc 'Run style checker'
  RuboCop::RakeTask.new(:rubocop) do |task|
    task.requires << 'rubocop-rspec'
    task.fail_on_error = true
  end

  RSpec::Core::RakeTask.new(:rspec)

  desc 'Run test suite'
  task :spec do
    with_server 'test' do
      Rake::Task['geo_works:rspec'].invoke
    end
  end
  desc "Run development servers for Geo Works"
  task :dev_servers do
    with_server 'development' do
      begin
        Rake::Task['engine_cart:server'].invoke
      rescue Interrupt
        puts "Shutting down..."
      end
    end
  end
  desc "Run test servers for Geo Works"
  task :test_servers do
    with_server 'test' do
      begin
        sleep
      rescue Interrupt
        puts "Shutting down..."
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 tasks/geo_works.rake
geo_works-0.1.4 tasks/geo_works.rake
geo_works-0.1.3 tasks/geo_works.rake
geo_works-0.1.2 tasks/geo_works.rake
geo_works-0.1.1 tasks/geo_works.rake
geo_works-0.1.0 tasks/geo_works.rake