Sha256: 77dbfa84b9a59ba4dc5fb5f5df5e7182e7bb6eeacd5c8fd9ee550f7a479f5aad

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

require 'rails/generators'

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

  def add_gems
    gem 'blacklight', ">= 5.4"
  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

1 entries across 1 versions & 1 rubygems

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