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

Version Path
html2pdf-0.2.6 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.2.5 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.2.4 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.2.3 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.2.2 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.2.1 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.2.0 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.1.7 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.1.6 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.1.5 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.1.4 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.1.3 test/fixtures/samples/sub_dir/demo3_xxx.rb
html2pdf-0.1.2 test/fixtures/samples/sub_dir/demo3_xxx.rb