Sha256: 88b1c71601b06dc455c152c00cbc79386ebaefd0266256f65dfd03b8c109afe5

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

module Capistrano
  module Passenger5Nginx
    module Generators
      class ConfigGenerator < Rails::Generators::Base
        desc "Create local nginx and passenger 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"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-passenger5-nginx-0.0.1 lib/generators/capistrano/passenger5_nginx/config_generator.rb