Sha256: 3b76af6da79604f3544d90c63720680217a9f8c279f92e05ee0e83856c5ccf14

Contents?: true

Size: 647 Bytes

Versions: 15

Compression:

Stored size: 647 Bytes

Contents

require 'rails/generators'

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

  def run_blacklight_generator
    say_status("warning", "GENERATING BL", :yellow)       

    generate 'blacklight', '--devise'
  end

  def run_hydra_head_generator
    say_status("warning", "GENERATING HH", :yellow)       

    generate 'hydra:head', '-f'
  end

  def run_sufia_generator
    say_status("warning", "GENERATING SUFIA", :yellow)       

    generate 'sufia', '-f'

    remove_file 'spec/factories/users.rb'
  end

  def remove_index_page
    remove_file 'public/index.html'
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sufia-2.0.1 spec/support/lib/generators/test_app_generator.rb
sufia-2.0.0 spec/support/lib/generators/test_app_generator.rb
sufia-1.3.0 spec/support/lib/generators/test_app_generator.rb
sufia-1.2.0 spec/support/lib/generators/test_app_generator.rb
sufia-1.1.0 spec/support/lib/generators/test_app_generator.rb
sufia-1.0.0 spec/support/lib/generators/test_app_generator.rb
sufia-0.1.0 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.8 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.7 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.6 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.5 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.4 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.3 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.2 spec/support/lib/generators/test_app_generator.rb
sufia-0.0.1 spec/support/lib/generators/test_app_generator.rb