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

Version Path
souls-2.0.4 lib/souls/cli/delete/job.rb
souls-2.0.3 lib/souls/cli/delete/job.rb
souls-2.0.2 lib/souls/cli/delete/job.rb
souls-2.0.1 lib/souls/cli/delete/job.rb
souls-2.0.0 lib/souls/cli/delete/job.rb
souls-1.23.0 lib/souls/cli/delete/job.rb
souls-1.22.0 lib/souls/cli/delete/job.rb
souls-1.21.11 lib/souls/cli/delete/job.rb
souls-1.21.10 lib/souls/cli/delete/job.rb
souls-1.21.9 lib/souls/cli/delete/job.rb
souls-1.21.8 lib/souls/cli/delete/job.rb
souls-1.21.7 lib/souls/cli/delete/job.rb
souls-1.21.6 lib/souls/cli/delete/job.rb
souls-1.21.5 lib/souls/cli/delete/job.rb
souls-1.21.4 lib/souls/cli/delete/job.rb
souls-1.21.3 lib/souls/cli/delete/job.rb
souls-1.21.2 lib/souls/cli/delete/job.rb
souls-1.21.1 lib/souls/cli/delete/job.rb
souls-1.21.0 lib/souls/cli/delete/job.rb
souls-1.20.13 lib/souls/cli/delete/job.rb