Sha256: 4f1a2899c646e73524a3c7d976d03b6ba15fa7b5a30becab610b6a0706a5d545
Contents?: true
Size: 413 Bytes
Versions: 42
Compression:
Stored size: 413 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) puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }]) file_path end end end
Version data entries
42 entries across 42 versions & 1 rubygems