Class: ThreddedCreateApp::Tasks::AddThredded
- Defined in:
- lib/thredded_create_app/tasks/add_thredded.rb
Overview
rubocop:disable Metrics/ClassLength
Instance Attribute Summary
Attributes inherited from Base
#app_hostname, #app_name, #app_path, #gems
Instance Method Summary collapse
-
#after_bundle ⇒ Object
rubocop:disable Metrics/AbcSize.
- #before_bundle ⇒ Object
- #summary ⇒ Object
Methods inherited from Base
#devise_form_fields_begin_pattern, #initialize, #webpack_js?
Methods included from RunCommand
Methods included from Logging
#log_command, #log_error, #log_info, #log_stderr, #log_verbose, #log_warn, #program_name
Constructor Details
This class inherits a constructor from ThreddedCreateApp::Tasks::Base
Instance Method Details
#after_bundle ⇒ Object
rubocop:disable Metrics/AbcSize
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/thredded_create_app/tasks/add_thredded.rb', line 16 def after_bundle # rubocop:disable Metrics/AbcSize install_thredded git_commit 'Install thredded (rails g thredded:install)' add_thredded_routes copy 'add_thredded/thredded.en.yml', 'config/locales/thredded.en.yml' set_thredded_layout configure_thredded_controller add_thredded_styles add_thredded_javascripts copy 'add_thredded/spec/features/thredded_spec.rb', 'spec/features/thredded_spec.rb' git_commit 'Configure Thredded (routes, assets, behaviour, tests)' add_admin_column_to_users git_commit 'Add the admin column to users' setup_thredded_emails git_commit 'Configure Thredded emails and email styles with Roadie' configure_rails_email_preview git_commit 'Configure RailsEmailPreview with Thredded and Roadie' end |
#before_bundle ⇒ Object
11 12 13 14 |
# File 'lib/thredded_create_app/tasks/add_thredded.rb', line 11 def before_bundle add_gem 'thredded', **(ENV['LOCAL_THREDDED'] ? { path: ENV['LOCAL_THREDDED'] } : {}) end |
#summary ⇒ Object
7 8 9 |
# File 'lib/thredded_create_app/tasks/add_thredded.rb', line 7 def summary 'Add and setup Thredded with a User model' end |