Class: Radiant::Boot
- Inherits:
-
Object
show all
- Defined in:
- lib/generators/instance/templates/instance_boot.rb
Instance Method Summary
collapse
Instance Method Details
#load_initializer ⇒ Object
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/generators/instance/templates/instance_boot.rb', line 64
def load_initializer
begin
require 'radiant'
require 'radiant/initializer'
rescue LoadError => e
$stderr.puts %(Radiant could not be initialized. #{load_error_message})
exit 1
end
Radiant::Initializer.run(:set_load_path)
end
|
60
61
62
|
# File 'lib/generators/instance/templates/instance_boot.rb', line 60
def run
load_initializer
end
|