bin/check-all-gpg-keys-for-expiry.rb
def populate_key_num_of_days_left_and_level(key, today_epoch)
    if !key.expiry.nil?
      key.num_of_days_left = calculate_num_of_days_left(key, today_epoch)
      update_key_level(key)
    else
      key.num_of_days_left = Integer::MAX
      key.level = 0
    end
  end
# Populate key's num of days left and its level
Populate key's num of days left and its level
Populate key ' s num of days left and its level
def populate_key_num_of_days_left_and_level(key, today_epoch)
    if !key.expiry.nil?
      key.num_of_days_left = calculate_num_of_days_left(key, today_epoch)
      update_key_level(key)
    else
      key.num_of_days_left = Integer::MAX
      key.level = 0
    end
  end
def populate_key_num_of_days_left_and_level ( key , today_epoch ) if ! key . expiry . nil? key . num_of_days_left = calculate_num_of_days_left ( key , today_epoch ) update_key_level ( key ) else key . num_of_days_left = Integer :: MAX key . level = 0 end end
Populate key's num of days left and its level
Populate key ' s num of days left and its level
key
today_epoch