module Souls class Delete < Thor desc "connection [CLASS_NAME]", "Delete GraphQL Connection" def connection(class_name) file_dir = "./app/graphql/types/connections/" singularized_class_name = class_name.underscore.singularize file_path = "#{file_dir}#{singularized_class_name}_connection.rb" FileUtils.rm_f(file_path) Souls::Painter.delete_file(file_path) file_path end end end