Sha256: 563bdf7011f3c04dbcf11d8ea3554735e2bc4c00e598498a4bca5a8ab6109d3b
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
require 'thor/group' module Foodie2 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 "#{__dir__}/recipe" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foodie2-0.0.1 | lib/foodie2/generators/recipe.rb |