Sha256: ce35ec4fa31daf2f40ec036a283ae772c043766eba9347fe4b5505a7c62561c7
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
module Capistrano module UnicornNginxOsx module Generators class ConfigGenerator < Rails::Generators::Base desc "Create local nginx and unicorn configuration files for customization" source_root File.expand_path('../templates', __FILE__) argument :templates_path, type: :string, default: "config/deploy/templates", banner: "path to templates" 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.plist.erb", "#{templates_path}/unicorn.plist.erb" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems