Class: Belts::Initializer

Inherits:
Thor
  • Object
show all
Defined in:
lib/belts/initializer.rb

Instance Method Summary collapse

Instance Method Details

#startObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/belts/initializer.rb', line 6

def start
  app_loader = Zeitwerk::Loader.new
  app_loader.push_dir('config')
  Dir.glob('app/*').each do |dir|
    app_loader.push_dir dir
  end
  app_loader.setup

  Application.new
end