module Idlc::Deploy::Power
def keep_alive_expired?(tag)
def keep_alive_expired?(tag) tag_parts = tag.split('-') msg("keep_alive expired..") if one_week_old?(tag_parts[1].to_i) msg("keep_alive expires in #{((Time.now.to_i - (tag_parts[1].to_i + (7*24*3600)))/24/3600).abs} days..") unless one_week_old?(tag_parts[1].to_i) one_week_old?(tag_parts[1].to_i) end