Class: Suspenders::Production::TimeoutGenerator

Inherits:
Generators::Base
  • Object
show all
Defined in:
lib/suspenders/generators/production/timeout_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#add_gemObject



6
7
8
9
# File 'lib/suspenders/generators/production/timeout_generator.rb', line 6

def add_gem
  gem "rack-timeout", group: :production
  Bundler.with_clean_env { run "bundle install" }
end

#configure_rack_timeoutObject



11
12
13
# File 'lib/suspenders/generators/production/timeout_generator.rb', line 11

def configure_rack_timeout
  append_file ".env", rack_timeout_config
end