class Bundler::CLI
def lock
def lock if locked? Bundler.ui.info("Your bundle is already locked, relocking.") remove_lockfiles end Bundler.runtime.lock Bundler.ui.confirm("Your bundle is now locked. " + "Use `bundle show [gemname]` to list the gems in the environment.") rescue GemNotFound, VersionConflict => e Bundler.ui.error(e.message) Bundler.ui.warn "Run `bundle install` to install missing gems." exit 128 end