Sha256: 0e664d674c023ee205032cd391ceb8c0a4517dd569acf4d26d11f394420a8466

Contents?: true

Size: 1.41 KB

Versions: 21

Compression:

Stored size: 1.41 KB

Contents

#require 'rake/testtask'
require 'rspec/core'
require 'rspec/core/rake_task'

namespace :hyhead do
  namespace :fixture do
    desc "Call hydra:delete"
    task :delete => ["hyhead:use_test_app"] do
      puts %x[rake hydra:delete]
      FileUtils.cd('../../')
    end
    
    desc "Call hydra:harvest_fixture"
    task :harvest => ["hyhead:use_test_app"] do
      puts %x[rake hydra:harvest_fixture]
      FileUtils.cd('../../')
    end
    
    desc "Call hydra:import_fixture from within the test app"
    task :import => ["hyhead:use_test_app"] do
      puts %x[rake hydra:import_fixture]
      FileUtils.cd('../../')
    end
    
    
    desc "Call hydra:refresh_fixture from within the test app"
    task :refresh => ["hyhead:use_test_app"] do
      puts %x[rake hydra:refresh_fixture]
      FileUtils.cd('../../')
    end
  end
  
  namespace :fixtures do
    
    desc "Call hydra:fixtures:refresh from within the test app"
    task :refresh => ["hyhead:use_test_app"] do
      puts %x[rake hydra:fixtures:refresh]
      FileUtils.cd('../../')
    end
    # task :load => ["hyhead:use_test_app"] do
    #   Rake::Task['hydra:default_fixtures:load'].invoke
    # end
    # task :delete do
    #   Rake::Task['hydra:default_fixtures:delete'].invoke
    # end
    
    
    desc "Call hydra:purge_range"
    task :purge_range => ["hyhead:use_test_app"] do
      puts %x[rake hydra:purge_range]
      FileUtils.cd('../../')
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hydra-head-3.1.5 tasks/hydra-head-fixtures.rake
hydra-head-3.1.4 tasks/hydra-head-fixtures.rake
hydra-head-3.1.3 tasks/hydra-head-fixtures.rake
hydra-head-3.1.2 tasks/hydra-head-fixtures.rake
hydra-head-3.1.1 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0.rc2 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0.rc1 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0.pre5 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0.pre4 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0.pre3 tasks/hydra-head-fixtures.rake
hydra-head-3.0.1 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0.pre2 tasks/hydra-head-fixtures.rake
hydra-head-3.0.0 tasks/hydra-head-fixtures.rake
hydra-head-3.1.0.pre1 tasks/hydra-head-fixtures.rake
hydra-head-3.0.0.rc2 tasks/hydra-head-fixtures.rake
hydra-head-3.0.0.rc1 tasks/hydra-head-fixtures.rake
hydra-head-3.0.0pre4 tasks/hydra-head-fixtures.rake
hydra-head-3.0.0pre3 tasks/hydra-head-fixtures.rake
hydra-head-3.0.0pre2 tasks/hydra-head-fixtures.rake