Sha256: 63e6dc21c0552fbaf02701a2a56c41b1149731a13a54c7140f6a0dec95e362d0
Contents?: true
Size: 357 Bytes
Versions: 28
Compression:
Stored size: 357 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_f(file_path) Souls::Painter.delete_file(file_path.to_s) file_path end end end
Version data entries
28 entries across 28 versions & 1 rubygems