Class: ThreddedCreateApp::Tasks::AddMemcachedSupport

Inherits:
Base
  • Object
show all
Defined in:
lib/thredded_create_app/tasks/add_memcached_support.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



16
17
18
19
20
# File 'lib/thredded_create_app/tasks/add_memcached_support.rb', line 16

def after_bundle
  inject_into_file 'config/environments/production.rb',
                   before: /end\n\z/,
                   content: dalli_config
end

#before_bundleObject



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

def before_bundle
  add_gem 'dalli'
  add_gem 'connection_pool'
end

#summaryObject



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

def summary
  'Add memcached support via the dalli memcached client'
end