Sha256: fd0b62a8199afbe3fe09a780372525dcddd77c6ed802941e46cd3620cde43156

Contents?: true

Size: 641 Bytes

Versions: 1

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.shift, ARGV, File.dirname(File.dirname(__FILE__)))
rescue RubiGen::GeneratorError => e
  Sprout::Sprout.generate('as3', ARGV.shift, ARGV, File.dirname(File.dirname(__FILE__)))
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprout-air-bundle-0.0.1 lib/sprout/generators/project/templates/generate