Sha256: e7ea11805cee70a2450b809a35a9a884e5e6a43e98472cf04f534056de125140

Contents?: true

Size: 641 Bytes

Versions: 2

Compression:

Stored size: 641 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'sprout'
sprout 'sprout-as3-bundle'

# Add a class name if TestSuites were generated
if(ARGV.size == 1 && ARGV[0] == 'suite')
  ARGV << 'AllTests'
end

# Insert class type by default
if(ARGV.size == 1)
  ARGV.unshift('class')
end

# Execute generators like this:
# script/generate class utils.MathUtil
# script/generate suite
# script/generate test utils.MathUtilTest

begin
  Sprout::Sprout.generate('flex4', ARGV.first, ARGV, File.dirname(File.dirname(__FILE__)))
rescue RubiGen::GeneratorError => e
  Sprout::Sprout.generate('as3', ARGV.first, ARGV, File.dirname(File.dirname(__FILE__)))
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sprout-flex4-bundle-0.1.4 lib/sprout/generators/project/templates/generate
sprout-flex4-bundle-0.1.3 lib/sprout/generators/project/templates/generate