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", " # frozen_string_literal: true\n\n # GemCache configuration options.\n GemCache.setup do |config|\n # The remote host to cache ruby gems from. This option may be overriden\n # directly or by setting the 'RAILS_GEMCACHE_HOST' environment\n # variable. The default option is https://rubygems.org. The remote host\n # must follow the distrubution pattern of rubygems.org, otherwise\n # GemCache will be unable to fetch gems from it.\n config.host = ENV[\"RAILS_GEMCACHE_HOST\"] || \"https://rubygems.org\"\n end\n RUBY\nend\n"
|