Sha256: 8dec20b2d652bc46f30e791d69d3f0e99b053ba15478e31b0cef8c9b8852aab7

Contents?: true

Size: 465 Bytes

Versions: 13

Compression:

Stored size: 465 Bytes

Contents

class ComponentGenerator < Sprout::Generator::NamedBase  # :nodoc:

  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
    
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sprout-as3-bundle-1.0.37 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.36 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.32 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.31 lib/sprout/generators/component/component_generator.rb
sprout-flex4-bundle-0.1.4 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.29 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.30 lib/sprout/generators/component/component_generator.rb
sprout-flex4-bundle-0.1.3 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.20 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.21 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.24 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.23 lib/sprout/generators/component/component_generator.rb
sprout-as3-bundle-1.0.22 lib/sprout/generators/component/component_generator.rb