Sha256: b2ec4e73f1a8b18b4a46ff4f3c4a157f46e7ba7982f5c3cd318285404999e30f
Contents?: true
Size: 440 Bytes
Versions: 3
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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
richie-foodie-0.2.0 | lib/foodie/generators/recipe.rb |
richie-foodie-0.1.0 | lib/foodie/generators/recipe.rb |
darkwasp99_foodie-0.2.0 | lib/foodie/generators/recipe.rb |