Sha256: 416c5778f15e0fccae59677c33aa57d198534aa061f7d59c76eea06eef351327
Contents?: true
Size: 358 Bytes
Versions: 68
Compression:
Stored size: 358 Bytes
Contents
module SOULs 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_f(file_path) SOULs::Painter.delete_file(file_path.to_s) file_path end end end
Version data entries
68 entries across 68 versions & 1 rubygems