Sha256: 7e36d9f25faf829e7b2fe4f18e8d71006a9b382474369b455e7fbb327694cb9c

Contents?: true

Size: 849 Bytes

Versions: 1

Compression:

Stored size: 849 Bytes

Contents

module FlexUnit4
  class AIRProjectGenerator < FlashSDK::FlexProjectGenerator

    def manifest
      directory input do
        template 'Rakefile', 'AIRRakefile.rb'
        template 'Gemfile'

        directory src do
          template "#{input.camel_case}.mxml", 'AIRApplication.mxml'
          template "#{test_runner_name}.mxml", 'AIRRunner.mxml'
          template "#{input.camel_case}-app.xml", 'AIRApplication-app.xml'

          directory assets do
            directory css do
              file 'Main.css', 'Flex4Main.css'
            end
            directory images
            directory fonts
          end
        end
        
        directory 'cert' do
          file 'password'
          file 'dev-cert.p12'
        end

        # Create empty directories:
        directory lib
        directory bin
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flexunit-0.0.7.pre lib/flexunit4/generators/air_project_generator.rb