Class: Mvnizer::Command::ProjectFactory
- Inherits:
-
Object
- Object
- Mvnizer::Command::ProjectFactory
- Defined in:
- lib/mvnizer/commands/project_factory.rb
Class Method Summary collapse
Class Method Details
.create(type) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mvnizer/commands/project_factory.rb', line 5 def self.create(type) case type when 'jar' return NewProject.new when 'war' require 'mvnizer/commands/new_war_project' return NewWarProject.new else raise ArgumentError, "Don’t know how to create #{type}." end end |