Sha256: 6fc79725d6044db09b4fc038ab1f2ee0e1c50c8f18f6bec85b6a1722af1a4ad9
Contents?: true
Size: 622 Bytes
Versions: 10
Compression:
Stored size: 622 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" FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir) file_path = "#{file_dir}/#{singularized_class_name}_type.rbs" FileUtils.rm(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
10 entries across 10 versions & 1 rubygems