Sha256: f1b2356df433c7a366c5ef51f9b0755811ddecd86c5819460b0324ab95431656

Contents?: true

Size: 396 Bytes

Versions: 9

Compression:

Stored size: 396 Bytes

Contents

require_relative "../base"

module Suspenders
  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

9 entries across 9 versions & 2 rubygems

Version Path
suspenders-1.53.0 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.33 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.32.2 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.32.1 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.32.0 lib/suspenders/generators/production/timeout_generator.rb
suspenders-1.52.0 lib/suspenders/generators/production/timeout_generator.rb
suspenders-1.51.0 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.31.0 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.30.0 lib/suspenders/generators/production/timeout_generator.rb