8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/generators/gemcache/install_generator.rb', line 8
def create_initializer_file
create_file "config/initializers/gemcache.rb", <<~RUBY
# frozen_string_literal: true
# GemCache configuration options.
GemCache.setup do |config|
# The remote host to cache ruby gems from. This option may be overriden
# directly or by setting the 'RAILS_GEMCACHE_HOST' environment
# variable. The default option is https://rubygems.org. The remote host
# must follow the distrubution pattern of rubygems.org, otherwise
# GemCache will be unable to fetch gems from it.
config.host = ENV["RAILS_GEMCACHE_HOST"] || "https://rubygems.org"
end
RUBY
end
|