Sha256: a778fcd6d0a65f29521656dd775ebcc367651b23a2ccd31bef17ff353c5e8cfd

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

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

  def add_gems
    gem 'blacklight', '>= 6.9.0'
  end

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

    generate 'blacklight:install', '--devise'
  end

  def run_cancan_generator
    say_status('warning', 'GENERATING Ability', :yellow)
    generate 'cancan:ability'
  end

  def run_roles_generator
    say_status('warning', 'GENERATING ROLES', :yellow)
    generate 'roles', '-f'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hydra-role-management-1.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
hydra-role-management-1.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
hydra-role-management-1.0.3 spec/test_app_templates/lib/generators/test_app_generator.rb