Method: Jets::Booter.check_config_ru!
- Defined in:
- lib/jets/booter.rb
.check_config_ru! ⇒ Object
156 157 158 159 160 161 162 163 164 165 |
# File 'lib/jets/booter.rb', line 156 def check_config_ru! config_ru = File.read("#{Jets.root}/config.ru") unless config_ru.include?("Jets.boot") puts 'The config.ru file is missing Jets.boot. Please add Jets.boot after require "jets"'.color(:red) puts "This was changed as made in Jets v1.1.0." puts "To have Jets update the config.fu file for you, you can run:\n\n" puts " jets upgrade" exit 1 end end |