Class: Vipergen::ViperThor

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

Instance Method Summary collapse

Instance Method Details

#generate(name) ⇒ Object



10
11
12
# File 'lib/vipergen/viperthor.rb', line 10

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

#templatesObject



15
16
17
# File 'lib/vipergen/viperthor.rb', line 15

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