Sha256: 1b68250bc77839480cde2594f6a5ab57a42087a77c75ce1a73fbe1fe559a3371
Contents?: true
Size: 589 Bytes
Versions: 13
Compression:
Stored size: 589 Bytes
Contents
# file: spec/fixtures/sub-dir/demo3.xxx.rb # from: https://github.com/radar/guides/blob/master/gem-development/foodie/lib/foodie/generators/recipe.rb 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
13 entries across 13 versions & 1 rubygems