Sha256: ce0b24719cc3123e0f31219261ae01e96f2885dca44831970661a5d268642332
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
require 'thor/group' module Foodie module Generators class Recipe < Thor::Group include Thor::Actions argument :group, type: :string argument :name, type: :string def create_group empty_directory(group) end def copy_recipe template("recipe.txt", "#{group}/#{name}.txt") end def self.source_root File.dirname(__FILE__) + "/recipe" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foodie_sreeram-0.1.1 | lib/foodie/generators/recipe.rb |
foodie_sreeram-0.1.0 | lib/foodie/generators/recipe.rb |