$:.unshift(File.expand_path("../", __FILE__)) require "active_support" require "active_support/concern" require "active_support/core_ext" require "active_support/dependencies" require "active_support/ordered_hash" require "active_support/ordered_options" require "fileutils" require "jets/camelizer" require "jets/version" require "memoist" require "rainbow/ext/string" # Looks like for zeitwerk module autovivification to work `bundle exec` must be called. # We run Bundle.setup initially which is what `bundle exec does. # This allows zeitwork module autovivification to work even if the user has not called jets with `bundle exec jets`. # We check for Afterburner mode since in that mode jets is a standalone tool. # require "jets/turbo" if Jets::Turbo.new.jets? require "bundler/setup" Bundler.setup # Same as Bundler.setup(:default) end require "zeitwerk" module Jets RUBY_VERSION = "2.5.3" class Error < StandardError; end autoload :Application, "jets/application" autoload :AwsInfo, "jets/aws_info" autoload :AwsServices, "jets/aws_services" autoload :Booter, 'jets/booter' autoload :Builders, 'jets/builders' autoload :Call, "jets/call" autoload :Cfn, 'jets/cfn' autoload :CLI, "jets/cli" autoload :Commands, "jets/commands" autoload :Controller, 'jets/controller' autoload :Core, "jets/core" autoload :Db, 'jets/db' autoload :Dotenv, 'jets/dotenv' autoload :Erb, "jets/erb" autoload :Generator, "jets/generator" autoload :Inflections, "jets/inflections" autoload :IO, "jets/io" autoload :Job, 'jets/job' autoload :Klass, 'jets/klass' autoload :Lambda, 'jets/lambda' autoload :Logger, "jets/logger" autoload :Mailer, "jets/mailer" autoload :Mega, "jets/mega" autoload :Middleware, "jets/middleware" autoload :Naming, 'jets/naming' autoload :PolyFun, 'jets/poly_fun' autoload :Preheat, "jets/preheat" autoload :Processors, 'jets/processors' autoload :RackServer, "jets/rack_server" autoload :Rdoc, "jets/rdoc" autoload :Resource, "jets/resource" autoload :Route, "jets/route" autoload :Router, "jets/router" autoload :Rule, 'jets/rule' autoload :Stack, "jets/stack" autoload :TmpLoader, "jets/tmp_loader" autoload :Turbine, 'jets/turbine' autoload :Turbo, 'jets/turbo' autoload :Util, "jets/util" extend Core # root, logger, etc end require "jets/core_ext/kernel" root = File.expand_path("..", File.dirname(__FILE__)) $:.unshift("#{root}/vendor/jets-gems/lib") require "jets-gems" $:.unshift("#{root}/vendor/rails/actionpack/lib") $:.unshift("#{root}/vendor/rails/actionview/lib") # will require action_controller, action_pack, etc later when needed Jets::Db # trigger autoload