Sha256: ebff9e0f21166a399c9b90c37dd2d460e2112fd669d55d9aca519ad073daad8d
Contents?: true
Size: 451 Bytes
Versions: 68
Compression:
Stored size: 451 Bytes
Contents
module SOULs class Delete < Thor desc "mutation [CLASS_NAME]", "Delete GraphQL Mutation" def mutation(class_name) singularized_class_name = class_name.singularize file_path = "" Dir.chdir(SOULs.get_api_path.to_s) do file_path = "./app/graphql/mutations/base/#{singularized_class_name}/" FileUtils.rm_rf(file_path) end SOULs::Painter.delete_file(file_path.to_s) file_path end end end
Version data entries
68 entries across 68 versions & 1 rubygems