Sha256: 707cdc08d23caa6f8559a807619b04199da3fb60ef5ae4133f36b26d9241df2e

Contents?: true

Size: 695 Bytes

Versions: 3

Compression:

Stored size: 695 Bytes

Contents

module Capistrano
  module NginxUnicorn
    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_init.erb", "#{templates_path}/unicorn_init.erb"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-nginx-unicorn-0.0.3 lib/generators/capistrano/nginx_unicorn/config_generator.rb
capistrano-nginx-unicorn-0.0.2 lib/generators/capistrano/nginx_unicorn/config_generator.rb
capistrano-nginx-unicorn-0.0.1 lib/generators/capistrano/nginx_unicorn/config_generator.rb