lib/command/cleanup_stale_apps.rb in cpl-0.2.0 vs lib/command/cleanup_stale_apps.rb in cpl-0.3.0

- old
+ new

@@ -21,11 +21,11 @@ def call # rubocop:disable Metrics/MethodLength return progress.puts "No stale apps found" if stale_apps.empty? progress.puts "Stale apps:" stale_apps.each do |app| - progress.puts " #{app[:name]} (#{thor_shell.set_color((app[:date]).to_s, :red)})" + progress.puts " #{app[:name]} (#{Shell.color((app[:date]).to_s, :red)})" end return unless confirm_delete progress.puts @@ -68,10 +68,10 @@ end def confirm_delete return true if config.options[:yes] - thor_shell.yes?("\nAre you sure you want to delete these #{stale_apps.length} apps (y/n)?") + Shell.confirm("\nAre you sure you want to delete these #{stale_apps.length} apps?") end def delete_gvc(app) cp.gvc_delete(app[:name]) progress.puts "#{app[:name]} deleted"