Method: SOULs::Delete#query

Defined in:
lib/souls/cli/delete/query.rb

#query(class_name) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/souls/cli/delete/query.rb', line 4

def query(class_name)
  singularized_class_name = class_name.singularize
  file_path = "./app/graphql/queries/#{singularized_class_name}*.rb"
  FileUtils.rm_f(file_path)
  SOULs::Painter.delete_file(file_path.to_s)
  file_path
end