lib/souls/cli/delete/query.rb in souls-1.8.6 vs lib/souls/cli/delete/query.rb in souls-1.8.8
- old
+ new
@@ -2,10 +2,10 @@
class Delete < Thor
desc "query [CLASS_NAME]", "Delete GraphQL Query"
def query(class_name)
singularized_class_name = class_name.singularize
file_path = "./app/graphql/queries/#{singularized_class_name}*.rb"
- FileUtils.rm(file_path)
+ FileUtils.rm_f(file_path)
puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
file_path
end
end
end