Sha256: 953f8e6aada77e912fbfd4477e59c47a50e09344c1410e695ce430bb83a7765d

Contents?: true

Size: 791 Bytes

Versions: 84

Compression:

Stored size: 791 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'rails/generators'
require 'rails/generators/migration'

module Hydra
class HyheadFixturesGenerator < Rails::Generators::Base

  source_root File.expand_path('../../../../', __FILE__)

  desc """
  This Generator copies the hydra-head sample/test objects into your application's test_support/fixtures directory
  These objects are useful for getting a sense of how hydra works, but you will want to delete them and create your own
  fixtures to run your application's tests against.

  After running this generator, you can import your fixtures into fedora & solr by running

  rake hydra:fixtures:refresh
  rake hydra:fixtures:refresh RAILS_ENV=test

  """

  def copy_hyhead_fixtures
    directory("test_support/fixtures", "spec/fixtures")
  end

end
end

Version data entries

84 entries across 84 versions & 2 rubygems

Version Path
hydra-core-6.2.0 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.1.1 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.1.0 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.rc4 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.rc3 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.rc2 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.rc1 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre8 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-5.4.0 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre7 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre6 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre5 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre4 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre3 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre2 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-6.0.0.pre1 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-5.4.0.pre1 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-5.3.0 lib/generators/hydra/hyhead_fixtures_generator.rb
hydra-core-5.2.0 lib/generators/hydra/hyhead_fixtures_generator.rb