lib/dri/commands/rm/profile.rb in dri-0.1.3 vs lib/dri/commands/rm/profile.rb in dri-0.2.0
- old
+ new
@@ -11,19 +11,19 @@
@options = options
end
def execute(input: $stdin, output: $stdout)
verify_config_exists
-
+
remove = prompt.yes? "Are you sure you want to remove existing profile?"
unless remove
logger.info "Profile kept in place 👍"
exit 0
end
logger.info "Removing profile..."
-
+
FileUtils.rm("#{Dir.pwd}/.dri_profile.yml")
logger.success "Done ✅"
end
end