Sha256: 4d88f50d9bf63a9dbd820dadab881da5fa4d44b88d5f3981b4374ebe7219c640
Contents?: true
Size: 655 Bytes
Versions: 52
Compression:
Stored size: 655 Bytes
Contents
module SOULs class Delete < Thor desc "manager_rbs [CLASS_NAME]", "Delete SOULs Manager RBS Template" method_option :mutation, aliases: "--mutation", required: true, desc: "Mutation File Name" def manager_rbs(class_name) file_path = "" singularized_class_name = class_name.underscore.singularize Dir.chdir(SOULs.get_mother_path.to_s) do file_dir = "./sig/api/app/graphql/mutations/managers/#{singularized_class_name}_manager" file_path = "#{file_dir}/#{options[:mutation]}.rbs" FileUtils.rm_f(file_path) SOULs::Painter.delete_file(file_path.to_s) end file_path end end end
Version data entries
52 entries across 52 versions & 1 rubygems