Class: StubGenerator

Inherits:
Butterfly::Stub::Base show all
Defined in:
lib/stub_generators/stub/stub_generator.rb

Instance Attribute Summary

Attributes inherited from Butterfly::Stub::Base

#author, #date, #group, #name, #target

Instance Method Summary collapse

Methods inherited from Butterfly::Stub::Base

#after_generate, #initialize

Constructor Details

This class inherits a constructor from Butterfly::Stub::Base

Instance Method Details

#manifestObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/stub_generators/stub/stub_generator.rb', line 3

def manifest
  record do |m|

    # create templates folder
    m.directory "templates"

    # create templates
    m.template "generator-type_INFO", "INFO"
    m.template "generator-type_generator.rb", "#{name}_generator.rb"
    m.template "generator-type_README.txt", "templates/README.txt"
  end
end