Sha256: 6e382f0b1630fcc994f07e338bd6823b632e3c539e19ea0a259ade1e78604ca7

Contents?: true

Size: 639 Bytes

Versions: 11

Compression:

Stored size: 639 Bytes

Contents

require 'rails/generators'

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

  def add_routes
    insert_into_file "config/routes.rb", :after => '.draw do' do
      "\n  mount HydraEditor::Engine => \"/\""

    end
  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_rspec_rake_task
  #   copy_file "lib/tasks/rspec.rake"
  # end

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

Version data entries

11 entries across 6 versions & 1 rubygems

Version Path
hydra-editor-0.0.6 spec/support/lib/generators/test_app_generator.rb
hydra-editor-0.0.5 spec/support/lib/generators/test_app_generator.rb
hydra-editor-0.0.5 spec/dummy/lib/generators/test_app_generator.rb
hydra-editor-0.0.4 spec/support/lib/generators/test_app_generator.rb
hydra-editor-0.0.4 spec/dummy/lib/generators/test_app_generator.rb
hydra-editor-0.0.3 spec/support/lib/generators/test_app_generator.rb
hydra-editor-0.0.3 spec/dummy/lib/generators/test_app_generator.rb
hydra-editor-0.0.2 spec/support/lib/generators/test_app_generator.rb
hydra-editor-0.0.2 spec/dummy/lib/generators/test_app_generator.rb
hydra-editor-0.0.1 spec/dummy/lib/generators/test_app_generator.rb
hydra-editor-0.0.1 spec/support/lib/generators/test_app_generator.rb