Sha256: dee45bb2f118b8a2ac169278a91a72fed065731330ac15b98cbe3263fd9801e7

Contents?: true

Size: 403 Bytes

Versions: 7

Compression:

Stored size: 403 Bytes

Contents

require "rails/generators"

module Suspenders
  module Production
    class TimeoutGenerator < Rails::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

7 entries across 7 versions & 2 rubygems

Version Path
suspenders-1.50.0 lib/suspenders/generators/production/timeout_generator.rb
suspenders-1.49.0 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.29.0 lib/suspenders/generators/production/timeout_generator.rb
suspenders-1.48.0 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.29.0.alpha.3 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.29.0.alpha.2 lib/suspenders/generators/production/timeout_generator.rb
welaika-suspenders-2.29.0.alpha.1 lib/suspenders/generators/production/timeout_generator.rb