Sha256: 6dd477270c9a49499a7b5c3fc228cf64258c5648286230a2dd892ed71d78c9bd

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

module Pah
  module Templates
    class RackDeflater < Pah::Template
      def call
        file = 'config/application.rb'
        inject = "    config.middleware.use Rack::Deflater\n\n"
        options = { before: '    # Settings in config/environments/* take precedence over those specified here.', verbose: false }

        inject_into_file file, inject, options

        git add: 'config/application.rb'
        git_commit 'Add Rack::Deflater middleware.'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/templates/rack_deflater.rb
pah-0.0.27 lib/pah/templates/rack_deflater.rb