class Bundler::CLI

def check

def check
  env = Bundler.load
  # Check top level dependencies
  missing = env.dependencies.select { |d| env.index.search(d).empty? }
  if missing.any?
    puts "The following dependencies are missing"
    missing.each do |d|
      puts "  * #{d}"
    end
    exit 1
  else
    env.specs
    puts "The Gemfile's dependencies are satisfied"
  end
end