Sha256: 0c134ffb2c69c5c938e41f7f0a280d64d317f6f7858bc478da117f5d1fa06f71
Contents?: true
Size: 560 Bytes
Versions: 42
Compression:
Stored size: 560 Bytes
Contents
module Souls class Delete < Thor desc "type_rbs [CLASS_NAME]", "Delete GraphQL Type RBS" def type_rbs(class_name) singularized_class_name = class_name.underscore.singularize file_path = "" Dir.chdir(Souls.get_mother_path.to_s) do file_dir = "./sig/api/app/graphql/types" file_path = "#{file_dir}/#{singularized_class_name}_type.rbs" FileUtils.rm_f(file_path) end 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