Class: ThreddedCreateApp::Tasks::AddSimpleForm

Inherits:
Base
  • Object
show all
Defined in:
lib/thredded_create_app/tasks/add_simple_form.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
# File 'lib/thredded_create_app/tasks/add_simple_form.rb', line 15

def after_bundle
  run_generator 'simple_form:install'
  git_commit 'Install SimpleForm (rails g simple_form:install)'
end

#before_bundleObject



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

def before_bundle
  add_gem 'simple_form'
end

#summaryObject



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

def summary
  'Add the simple_form gem'
end