Sha256: 3fcaa33fe12fe6f77792e00b145c92c9a7edb2c9e5887143263ba787872c026b
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 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-cli-0.1.0 | lib/foodie/generators/recipe.rb |