Sha256: d88b1df51b08031ca19f073a8c4118b09fc0b0913d5dc5c4db736595385327b5

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 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

2 entries across 2 versions & 1 rubygems

Version Path
hydra-role-management-1.0.2 spec/test_app_templates/lib/generators/test_app_generator.rb
hydra-role-management-1.0.1 spec/test_app_templates/lib/generators/test_app_generator.rb