Sha256: 7e1401c340b8ca179d58000a1086eb61b0ab0ee3849300442c6ed3a4cbd34548
Contents?: true
Size: 563 Bytes
Versions: 120
Compression:
Stored size: 563 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 puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }]) file_path rescue Thor::Error => e raise(Thor::Error, e) end end end
Version data entries
120 entries across 120 versions & 1 rubygems