Class: Vipergen::ViperThor

Inherits:
Thor
  • Object
show all
Defined in:
lib/vipergen/viperthor.rb

Instance Method Summary collapse

Instance Method Details

#generate(name) ⇒ Object



12
13
14
# File 'lib/vipergen/viperthor.rb', line 12

def generate(name)
   Vipergen::Generator.generate_viper(options[:template], options[:language], name, options[:path], options[:author], options[:company])
end

#templatesObject



17
18
19
# File 'lib/vipergen/viperthor.rb', line 17

def templates()
	puts Vipergen::TemplateManager.templates_description()
end