Class: ThreddedCreateApp::Tasks::AddRailsEmailPreview

Inherits:
Base
  • Object
show all
Defined in:
lib/thredded_create_app/tasks/add_rails_email_preview.rb

Instance Attribute Summary

Attributes inherited from Base

#app_hostname, #app_name, #app_path, #gems

Instance Method Summary collapse

Methods inherited from Base

#devise_form_fields_begin_pattern, #initialize, #webpack_js?

Methods included from RunCommand

#run

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_bundleObject



15
16
17
18
19
# File 'lib/thredded_create_app/tasks/add_rails_email_preview.rb', line 15

def after_bundle
  run_generator 'rails_email_preview:install'
  add_styles
  git_commit 'rails g rails_email_preview:install'
end

#before_bundleObject



11
12
13
# File 'lib/thredded_create_app/tasks/add_rails_email_preview.rb', line 11

def before_bundle
  add_gem 'rails_email_preview'
end

#summaryObject



7
8
9
# File 'lib/thredded_create_app/tasks/add_rails_email_preview.rb', line 7

def summary
  'Add and configure RailsEmailPreview'
end