Sha256: d9ba623cfbf80d3c322289374721911e1ff64811e1a57341fd4a15646bc7407a

Contents?: true

Size: 390 Bytes

Versions: 6

Compression:

Stored size: 390 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  source_root "../../spec/test_app_templates"

  # def add_gems
  #   gem 'sufia-models', github: 'projecthydra/sufia'
  #   Bundler.with_clean_env do
  #     run "bundle install"
  #   end
  # end

  def run_generator
    generate 'worthwhile:install'
  end

  def run_migrations
    rake "db:migrate"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 spec/test_app_templates/lib/generators/test_app_generator.rb
worthwhile-0.1.1 spec/test_app_templates/lib/generators/test_app_generator.rb
worthwhile-0.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
worthwhile-0.0.3 spec/test_app_templates/lib/generators/test_app_generator.rb
worthwhile-0.0.2 spec/test_app_templates/lib/generators/test_app_generator.rb
worthwhile-0.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb