Sha256: 3671205f45fe428491cbf0be110050a5154a9d2fb1d44099337104012748528c

Contents?: true

Size: 887 Bytes

Versions: 30

Compression:

Stored size: 887 Bytes

Contents

module Capistrano
  module NginxPuma
    module Generators
      class ConfigGenerator < Rails::Generators::Base
        desc "Create local nginx and puma 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 "../../../../capistrano/templates/puma.rb.erb", "#{templates_path}/puma.rb.erb"
          copy_file "../../../../capistrano/templates/nginx_conf.erb", "#{templates_path}/nginx_conf.erb"
          # copy_file "puma.rb.erb", "#{templates_path}/puma.rb.erb"
          # copy_file "puma_init.erb", "#{templates_path}/puma_init.erb"
          # copy_file "logrotate.erb", "#{templates_path}/logrotate.erb"
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
capistrano3-puma-5.2.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.1.1 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.1.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.0.4 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.0.3 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.0.2 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.0.1 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.0.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-5.0.0.beta1 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-4.0.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-3.1.1 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-3.1.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-3.0.3 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-3.0.2 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-3.0.1 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-2.0.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-3.0.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano-puma-a-2.0.0 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-1.2.1 lib/generators/capistrano/nginx_puma/config_generator.rb
capistrano3-puma-1.2.0 lib/generators/capistrano/nginx_puma/config_generator.rb