Class: ComponentGenerator
- Inherits:
-
Sprout::Generator::NamedBase
- Object
- Sprout::Generator::NamedBase
- ComponentGenerator
- Defined in:
- lib/sprout/generators/component/component_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 |
# File 'lib/sprout/generators/component/component_generator.rb', line 4 def manifest record do |m| if(!user_requested_test) m.directory full_class_dir m.template 'Component.mxml', full_class_path.gsub(/.as$/, '.mxml') end m.directory full_test_dir m.template 'VisualTestCase.as', full_test_case_path m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as'), :collision => :force end end |