Sha256: aac6f2daca38f96bfc9feb806657d1f60efcb3aa88215ab7aee9a80f5fe0a8d1

Contents?: true

Size: 420 Bytes

Versions: 24

Compression:

Stored size: 420 Bytes

Contents

module Souls
  class Delete < Thor
    desc "rspec_job [CLASS_NAME]", "Delete Rspec Job Test Template"
    def rspec_job(class_name)
      file_dir = "./spec/queries/jobs"
      singularized_class_name = class_name.underscore.singularize
      file_path = "#{file_dir}/#{singularized_class_name}_spec.rb"
      FileUtils.rm_f(file_path)
      Souls::Painter.delete_file(file_path.to_s)
      file_path
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
souls-1.17.3 lib/souls/cli/delete/rspec_job.rb
souls-1.17.2 lib/souls/cli/delete/rspec_job.rb
souls-1.17.1 lib/souls/cli/delete/rspec_job.rb
souls-1.17.0 lib/souls/cli/delete/rspec_job.rb
souls-1.16.4 lib/souls/cli/delete/rspec_job.rb
souls-1.16.3 lib/souls/cli/delete/rspec_job.rb
souls-1.16.2 lib/souls/cli/delete/rspec_job.rb
souls-1.16.1 lib/souls/cli/delete/rspec_job.rb
souls-1.16.0 lib/souls/cli/delete/rspec_job.rb
souls-1.15.5 lib/souls/cli/delete/rspec_job.rb
souls-1.15.4 lib/souls/cli/delete/rspec_job.rb
souls-1.15.3 lib/souls/cli/delete/rspec_job.rb
souls-1.15.2 lib/souls/cli/delete/rspec_job.rb
souls-1.15.1 lib/souls/cli/delete/rspec_job.rb
souls-1.15.0 lib/souls/cli/delete/rspec_job.rb
souls-1.14.3 lib/souls/cli/delete/rspec_job.rb
souls-1.14.2 lib/souls/cli/delete/rspec_job.rb
souls-1.14.1 lib/souls/cli/delete/rspec_job.rb
souls-1.14.0 lib/souls/cli/delete/rspec_job.rb
souls-1.13.8 lib/souls/cli/delete/rspec_job.rb