Sha256: 8ab5814629e3c6ca9f8297012cb08c7f0c3aee7e746edf6c455cb4cabbfe636e
Contents?: true
Size: 533 Bytes
Versions: 8
Compression:
Stored size: 533 Bytes
Contents
module Ufo module Booter def boot run_hooks end # Special boot hooks run super early. # Useful for setting env vars and other early things. # # .ufo/boot.rb # .ufo/boot/dev.rb # def run_hooks run_hook run_hook(Ufo.env) Ufo::Config::Inits.run_all end def run_hook(env=nil) name = env ? "boot/#{env}" : "boot" path = "#{Ufo.root}/.ufo/#{name}.rb" # IE: .ufo/boot/dev.rb require path if File.exist?(path) end extend self end end
Version data entries
8 entries across 8 versions & 1 rubygems