Class: Vipergen::ViperThor

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

Instance Method Summary collapse

Instance Method Details

#g(name) ⇒ Object



26
27
28
# File 'lib/vipergen/viperthor.rb', line 26

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

#generate(name) ⇒ Object



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

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

#templatesObject



31
32
33
# File 'lib/vipergen/viperthor.rb', line 31

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