Sha256: 02d26a84b2da7cf6c82bbff1c2de18b80b0637eacdd921531be55ac43ac25787
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foodie-kaushal-0.1.3 | lib/foodie/generators/recipe.rb |