snapshot/lib/snapshot/reset_simulators.rb in fastlane-2.23.0.beta.20170322010036 vs snapshot/lib/snapshot/reset_simulators.rb in fastlane-2.23.0
- old
+ new
@@ -4,10 +4,10 @@
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !! Warning: This script will remove all your existing simulators !!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
sure = true if FastlaneCore::Env.truthy?("SNAPSHOT_FORCE_DELETE") || force
- sure = agree("Are you sure? All your simulators will be DELETED and new ones will be created! (y/n)".red, true) unless sure
+ sure = UI.confirm("Are you sure? All your simulators will be DELETED and new ones will be created!") unless sure
UI.user_error!("User cancelled action") unless sure
devices.each do |device|
_, name, id = device
puts "Removing device #{name} (#{id})"