Sha256: 112da40fd5fbfcca17af55da271d64cd7d9c1e3f12a8513dffe2c4c9e77f9df4
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
require 'thor/group' module Plangi 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plangi-0.2.0 | lib/plangi/generators/recipe.rb |
plangi-0.1.0 | lib/plangi/generators/recipe.rb |