Sha256: 95108dd521838bbcaf8d00589e99dc5cc8f4ca571a64db06255bfec3dc1363b0
Contents?: true
Size: 540 Bytes
Versions: 52
Compression:
Stored size: 540 Bytes
Contents
module SOULs class Delete < Thor desc "job [CLASS_NAME]", "Delete Job File in Worker" method_option :mailer, type: :boolean, aliases: "--mailer", default: false, desc: "Mailer Option" def job(class_name) file_dir = "./app/graphql/queries/" file_path = "#{file_dir}#{class_name.singularize}.rb" FileUtils.rm_f(file_path) SOULs::Painter.delete_file(file_path.to_s) SOULs::Delete.new.invoke(:job_rbs, [class_name], {}) SOULs::Delete.new.invoke(:rspec_job, [class_name], {}) end end end
Version data entries
52 entries across 52 versions & 1 rubygems