class Rodolfo::Generator
Rodolfo
recipe generator
Public Class Methods
source_root()
click to toggle source
# File lib/rodolfo/cli.rb, line 15 def self.source_root File.join __dir__, 'templates' end
Public Instance Methods
five()
click to toggle source
# File lib/rodolfo/cli.rb, line 36 def five puts puts 'Recipe ready! Try it with:' puts "cat #{folder}/data.json | rodolfo render #{folder}" \ " --save-to #{folder}.pdf" end
four()
click to toggle source
# File lib/rodolfo/cli.rb, line 32 def four copy_file('data.tt', "#{folder}/data.json") end
one()
click to toggle source
# File lib/rodolfo/cli.rb, line 19 def one puts Generator.source_root empty_directory(folder) end
three()
click to toggle source
# File lib/rodolfo/cli.rb, line 28 def three template('template.tt', "#{folder}/template.rb") end
two()
click to toggle source
# File lib/rodolfo/cli.rb, line 24 def two template('schema.tt', "#{folder}/schema.json") end