# frozen_string_literal: true require_relative '../../command' require 'fileutils' module Dri module Commands class Rm class Profile < Dri::Command def initialize(options) @options = options end def execute(*) 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 end end end