Sha256: 0e04c49e4b130bf0a039f4060f40c1ec55c387f3fec72e2546e1dfa0de723adf

Contents?: true

Size: 330 Bytes

Versions: 68

Compression:

Stored size: 330 Bytes

Contents

module SOULs
  class Delete < Thor
    desc "rspec_factory [CLASS_NAME]", "Delete Rspec Factory Test from schema.rb"
    def rspec_factory(class_name)
      file_path = "./spec/factories/#{class_name.pluralize}.rb"
      FileUtils.rm_f(file_path)
      SOULs::Painter.delete_file(file_path.to_s)
      file_path
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
souls-2.0.0 lib/souls/cli/delete/rspec_factory.rb
souls-1.23.0 lib/souls/cli/delete/rspec_factory.rb
souls-1.22.0 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.11 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.10 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.9 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.8 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.7 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.6 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.5 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.4 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.3 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.2 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.1 lib/souls/cli/delete/rspec_factory.rb
souls-1.21.0 lib/souls/cli/delete/rspec_factory.rb
souls-1.20.13 lib/souls/cli/delete/rspec_factory.rb
souls-1.20.12 lib/souls/cli/delete/rspec_factory.rb
souls-1.20.11 lib/souls/cli/delete/rspec_factory.rb
souls-1.20.10 lib/souls/cli/delete/rspec_factory.rb
souls-1.20.9 lib/souls/cli/delete/rspec_factory.rb