Sha256: f196238a6badd30804e7c8c4a4715b11a9a3241dc826744e3294f950758d825c
Contents?: true
Size: 467 Bytes
Versions: 120
Compression:
Stored size: 467 Bytes
Contents
module Souls class Delete < Thor desc "type [CLASS_NAME]", "Delete GraphQL Type" def type(class_name) singularized_class_name = class_name.singularize file_path = "./app/graphql/types/#{singularized_class_name}_type.rb" FileUtils.rm(file_path) 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