Sha256: bdb1b6751fedc9411608e29f207c95c382d6678139154d0db707849553728b1f

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

require_relative "../base"

module Bulldozer
  module Production
    class TimeoutGenerator < Generators::Base
      def add_gem
        gem "rack-timeout", group: :production
      end

      def configure_rack_timeout
        append_file ".env", rack_timeout_config
      end

      private

      def rack_timeout_config
        %{RACK_TIMEOUT_SERVICE_TIMEOUT=10}
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bulldozer-1.6.3 lib/bulldozer/generators/production/timeout_generator.rb
bulldozer-1.6.2 lib/bulldozer/generators/production/timeout_generator.rb
bulldozer-1.6.1 lib/bulldozer/generators/production/timeout_generator.rb
bulldozer-1.6.0 lib/bulldozer/generators/production/timeout_generator.rb