Carton
Carton.setup_bundle
Section titled “Carton.setup_bundle”def self.setup_bundle: (*Symbol groups, ?gemfile: String?) -> untypedSets up a bundle in the current Box, like Bundler.setup. In a Carton’s Entrypoint, it gives that Carton a Carton Bundle of its own; in the app, it sets up the app’s bundle.
groupslimits setup to those groups, such asCarton.setup_bundle(:default, :test). With none, every group is set up.gemfile:chooses the Gemfile, relative to the calling file. Without it, Carton searches upward from the calling file forgems.rborGemfile.ENVis restored when setup finishes, so the bundle never leaks into the importer’s subprocesses.- Bundler errors raise instead of exiting the process.
Raises Carton::GemfileNotFound when there is no Gemfile.
# reports/lib/reports.rb: the EntrypointCarton.setup_bundle # reports/Gemfile, in this Carton's Box onlyrequire 'bigdecimal'Carton::VERSION
Section titled “Carton::VERSION”The installed Carton version, as a String.
