Class: Radiant::Boot

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

Direct Known Subclasses

AppBoot, GemBoot, VendorBoot

Instance Method Summary collapse

Instance Method Details

#load_initializerObject



64
65
66
67
68
69
70
71
72
73
# File 'lib/generators-rails2/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

#runObject



60
61
62
# File 'lib/generators-rails2/instance/templates/instance_boot.rb', line 60

def run
  load_initializer
end