PHP 8.2.31
Preview: check.rb Size: 1.21 KB
//proc/thread-self/root/opt/alt/ruby40/share/gems/gems/bundler-4.0.10/lib/bundler/cli/check.rb

# frozen_string_literal: true

module Bundler
  class CLI::Check
    attr_reader :options

    def initialize(options)
      @options = options
    end

    def run
      Bundler.settings.set_command_option_if_given :path, options[:path]

      definition = Bundler.definition
      definition.validate_runtime!

      begin
        definition.check!
        not_installed = definition.missing_specs
      rescue GemNotFound, GitError, SolveFailure
        Bundler.ui.error "Bundler can't satisfy your Gemfile's dependencies."
        Bundler.ui.warn "Install missing gems with `bundle install`."
        exit 1
      end

      if not_installed.any?
        Bundler.ui.error "The following gems are missing"
        not_installed.each {|s| Bundler.ui.error " * #{s.name} (#{s.version})" }
        Bundler.ui.warn "Install missing gems with `bundle install`"
        exit 1
      elsif !Bundler.default_lockfile.file? && Bundler.frozen_bundle?
        Bundler.ui.error "This bundle has been frozen, but there is no #{SharedHelpers.relative_lockfile_path} present"
        exit 1
      else
        definition.lock(true) unless options[:"dry-run"]
        Bundler.ui.info "The Gemfile's dependencies are satisfied"
      end
    end
  end
end

Directory Contents

Dirs: 1 × Files: 26

Name Size Perms Modified Actions
doctor DIR
- drwxr-xr-x 2026-06-09 07:03:24
Edit Download
2.06 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.77 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
711 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.21 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
608 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
5.23 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
6.01 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.10 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.44 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
3.10 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
902 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
16.97 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.89 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.28 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
4.61 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.31 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.75 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.81 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.14 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
9.11 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.27 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
1.83 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.13 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
351 B lrw-r--r-- 2026-05-21 12:15:22
Edit Download
2.11 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download
4.16 KB lrw-r--r-- 2026-05-21 12:15:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).