Class: BriskBills::Boot
- Inherits:
-
Object
show all
- Defined in:
- lib/generators/instance/templates/instance_boot.rb
Instance Method Summary
collapse
Instance Method Details
#load_initializer ⇒ Object
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
|
#run ⇒ Object
64
65
66
|
# File 'lib/generators/instance/templates/instance_boot.rb', line 64
def run
load_initializer
end
|