Class: ThreddedCreateApp::Tasks::ProductionConfigs

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

Instance Attribute Summary

Attributes inherited from Base

#app_hostname, #app_name, #app_path, #gems

Instance Method Summary collapse

Methods inherited from Base

#after_bundle, #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

#before_bundleObject



11
12
13
14
15
16
17
18
19
# File 'lib/thredded_create_app/tasks/production_configs.rb', line 11

def before_bundle
  copy 'production_configs/puma.production.rb',
       'config/puma.production.rb'
  git_commit 'Add production puma config file'

  copy 'production_configs/Procfile',
       'Procfile'
  git_commit 'Add Procfile'
end

#summaryObject



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

def summary
  'Add production configuration files'
end