Sha256: c32f1923b8fefb91e11e8617d5346db109ecca3ccfad0d6743491e3d743ad0c6

Contents?: true

Size: 686 Bytes

Versions: 23

Compression:

Stored size: 686 Bytes

Contents

module Capistrano
  module UnicornNginx
    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

23 entries across 23 versions & 1 rubygems

Version Path
capistrano-unicorn-nginx-5.2.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-5.1.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-5.0.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-4.2.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-4.1.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-4.0.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.4.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.3.3 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.3.2 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.3.1 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.3.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.2.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.1.2 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.1.1 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.1.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-3.0.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-2.1.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-2.0.0 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-1.0.2 lib/generators/capistrano/unicorn_nginx/config_generator.rb
capistrano-unicorn-nginx-1.0.1 lib/generators/capistrano/unicorn_nginx/config_generator.rb