lib/fig/lock.rb
# Update an existing lock file, or create if none exists
Update an existing lock file, or create if none exists
Update an existing lock file or create if none exists
def update
  log.info "Generating lock file for #{file} ..."
  hash = YAML.load(File.read(file))
select_latest(hash)
  log.info "Writing lock file #{lock_file} ..."
File.write(lock_file, hash.to_yaml)
  log.info "Done."
  end
def update log . info "Generating lock file for #{file} ..." hash = YAML . load ( File . read ( file ) ) select_latest ( hash ) log . info "Writing lock file #{lock_file} ..." File . write ( lock_file , hash . to_yaml ) log . info "Done." end
Update an existing lock file, or create if none exists
Update an existing lock file or create if none exists