Sha256: fac00a4754260cf49cc2f3ce6cfde53c50c525678b3b4d3bb6e2cef5982fb6a9

Contents?: true

Size: 578 Bytes

Versions: 10

Compression:

Stored size: 578 Bytes

Contents

module Souls
  class Delete < Thor
    desc "rspec_manager [CLASS_NAME]", "Delete Rspec Manager Test Template"
    method_option :mutation, aliases: "--mutation", required: true, desc: "Mutation File Name"
    def rspec_manager(class_name)
      singularized_class_name = class_name.underscore.singularize
      file_path = "./spec/mutations/managers/#{singularized_class_name}/#{options[:mutation]}_spec.rb"
      FileUtils.rm(file_path)
      puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
      file_path
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
souls-1.8.15 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.14 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.13 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.12 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.10 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.9 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.8 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.6 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.5 lib/souls/cli/delete/rspec_manager.rb
souls-1.8.4 lib/souls/cli/delete/rspec_manager.rb