Sha256: 1cce7bc635d062f0bf53f38ca7ec87c3b0bc7fe510547786a448826fa8a5e8da
Contents?: true
Size: 677 Bytes
Versions: 3
Compression:
Stored size: 677 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path("../../../../test_app_templates", __FILE__) 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 def copy_rspec_rake_task copy_file "lib/tasks/rspec.rake" end end
Version data entries
3 entries across 3 versions & 1 rubygems