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