Class: Capistrano::NginxUnicorn::Generators::ConfigGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_templateObject



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

def copy_template
  copy_file "nginx_conf.erb", "#{templates_path}/nginx_conf.erb"
  copy_file "unicorn.rb.erb", "#{templates_path}/unicorn.rb.erb"
  copy_file "unicorn_init.erb", "#{templates_path}/unicorn_init.erb"
  copy_file "logrotate.erb", "#{templates_path}/logrotate.erb"
end