lib/templater/cli/generator.rb in templater-0.1.4 vs lib/templater/cli/generator.rb in templater-0.1.5
- old
+ new
@@ -2,13 +2,12 @@
module CLI
class Generator
- def initialize(generator_name, destination_root, manifold, name, version)
- @destination_root, @manifold, @name, @version = destination_root, manifold, name, version
- @generator_name = generator_name
- @generator_class = @manifold.generator(@generator_name)
+ def initialize(generator_name, generator_class, destination_root, name, version)
+ @destination_root, @generator_name, @generator_class = destination_root, generator_name, generator_class
+ @name, @version = name, version
end
def version
puts @version
exit
\ No newline at end of file