Sha256: e13f3c616fbdc523499b9d5e49a352414f33eb8f827e0051ab2b99e34ce4e268

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  source_root File.expand_path("../../../../spec/test_app_templates", __FILE__)

  # if you need to generate any additional configuration
  # into the test app, this generator will be run immediately
  # after setting up the application

  def install_engine
    generate 'hydra_batch_edit:install'
  end
  
  def copy_test_models
    copy_file "app/models/sample.rb"
    copy_file "app/models/solr_document.rb"
    copy_file "db/migrate/20111101221803_create_searches.rb"
  end

  # def copy_hydra_config
  #   copy_file "config/initializers/hydra_config.rb"
  # end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-batch-edit-2.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
hydra-batch-edit-2.0.2 spec/test_app_templates/lib/generators/test_app_generator.rb