Sha256: 91274dbbf8c6c0f029b9fee7083c2647817c2de4f0071bf00da723b945ab91b4

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

module Capistrano3
  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"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano3-unicorn-nginx-0.0.4 lib/generators/capistrano3/unicorn_nginx/generators/config_generator.rb