lib/sigh/local_manage.rb in sigh-1.9.0 vs lib/sigh/local_manage.rb in sigh-1.10.0
- old
+ new
@@ -39,11 +39,10 @@
force = options.force
command = (!clean_expired.nil? || !clean_pattern.nil?) ? CLEANUP : LIST
return command, clean_expired, clean_pattern, force
end
- # rubocop:disable Metrics/AbcSize
def self.list_profiles
profiles = load_profiles
now = DateTime.now
soon = (Date.today + 30).to_datetime
@@ -82,10 +81,9 @@
UI.message "#{profiles_soon.count} are valid but will expire within 30 days".yellow
UI.message "#{profiles_valid.count} are valid".green
UI.message "You can remove all expired profiles using `sigh manage -e`" if profiles_expired.count > 0
end
- # rubocop:enable Metrics/AbcSize
def self.profile_info(profile)
if $verbose
"#{profile['Name']} - #{File.basename profile['Path']}"
else