Sha256: 44af89b55ab3ecba5cd164d0a944941e6e4b7cf97add86f929234224e3134c9c
Contents?: true
Size: 565 Bytes
Versions: 123
Compression:
Stored size: 565 Bytes
Contents
module Souls class Delete < Thor desc "query_rbs [CLASS_NAME]", "Delete GraphQL Query RBS" def query_rbs(class_name) file_path = "" Dir.chdir(Souls.get_mother_path.to_s) do file_dir = "./sig/api/app/graphql/queries/" singularized_class_name = class_name.underscore.singularize file_path = "#{file_dir}#{singularized_class_name}*.rbs" FileUtils.rm(file_path) puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }]) file_path end end end end
Version data entries
123 entries across 123 versions & 1 rubygems