Class: BundleGenerator
- Inherits:
-
Sprout::Generator::NamedBase
- Object
- Sprout::Generator::NamedBase
- BundleGenerator
- Defined in:
- lib/sprout/generators/bundle/bundle_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#manifest ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/sprout/generators/bundle/bundle_generator.rb', line 4 def manifest record do |m| base = class_name base_lower = base.downcase m.directory base_lower # m.directory File.join(base_lower, 'lib', 'sprout', base_lower) # m.directory File.join(base_lower, 'lib', 'sprout', 'generators') # m.directory File.join(base_lower, 'test', 'fixtures') # actions.each do |action| # m.directory File.join(base_lower, 'lib', 'sprout', 'generators', action) # m.template 'action_generator.erb', File.join(base_lower, 'lib', 'sprout', 'generators', action) # m.directory File.join(base_lower, 'lib', 'sprout', 'generators', action, 'templates') # end end end |