Class: BriskBills::Boot

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/instance/templates/instance_boot.rb

Direct Known Subclasses

AppBoot, GemBoot, VendorBoot

Instance Method Summary collapse

Instance Method Details

#load_initializerObject



68
69
70
71
72
73
74
75
76
77
# File 'lib/generators/instance/templates/instance_boot.rb', line 68

def load_initializer
  begin
    require 'brisk-bills'
    require 'brisk-bills/initializer'
  rescue LoadError => e
    $stderr.puts %(BriskBills could not be initialized. #{load_error_message})
    exit 1
  end
  BriskBills::Initializer.run :set_load_path
end

#runObject



64
65
66
# File 'lib/generators/instance/templates/instance_boot.rb', line 64

def run
  load_initializer
end