Class: Capistrano::NginxPuma::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/capistrano/nginx_puma/config_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_templateObject



11
12
13
14
15
16
17
# File 'lib/generators/capistrano/nginx_puma/config_generator.rb', line 11

def copy_template
  copy_file "../../../../capistrano/templates/puma.rb.erb", "#{templates_path}/puma.rb.erb"
  copy_file "../../../../capistrano/templates/nginx_conf.erb", "#{templates_path}/nginx_conf.erb"
  # copy_file "puma.rb.erb", "#{templates_path}/puma.rb.erb"
  # copy_file "puma_init.erb", "#{templates_path}/puma_init.erb"
  # copy_file "logrotate.erb", "#{templates_path}/logrotate.erb"
end