Class: Vipergen::ViperThor

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

Instance Method Summary collapse

Instance Method Details

#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[:project], options[:company], options[:swift_module])
end

#templatesObject



19
20
21
# File 'lib/vipergen/viperthor.rb', line 19

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