Sha256: 5a040b429704ea635a9a770ae591747126381c152202f22c5dd7e2736f362fa1

Contents?: true

Size: 749 Bytes

Versions: 34

Compression:

Stored size: 749 Bytes

Contents

module FlashSDK
  class ProjectGenerator < ClassGenerator

    add_param :css, Path, { :default => 'css' }
    add_param :images, Path, { :default => 'images' }
    add_param :fonts, Path, { :default => 'fonts' }    
        
    def manifest
      directory input do
        template 'rakefile.rb'
        template 'Gemfile'

        directory src do
          template "#{input.camel_case}.as", 'ActionScript3MainClass.as'
          template "#{test_runner_name}.as", 'ActionScript3RunnerClass.as'
        end

        directory assets do
          directory skins do
            file 'DefaultProjectImage.png'
          end
        end

        # Create empty directories:
        directory lib
        directory bin
      end
    end

  end
end

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
h4oflashsdk-1.0.13 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.12 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.11 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.10 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.9 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.8 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.7 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.6 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.5 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.4 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.3 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.2 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.1 lib/flashsdk/generators/project_generator.rb
h4oflashsdk-1.0.0 lib/flashsdk/generators/project_generator.rb
flashsdk_sqe-0.0.2 lib/flashsdk/generators/project_generator.rb
flashsdk_sqe-0.0.1 lib/flashsdk/generators/project_generator.rb
flashsdk-1.1.36.pre lib/flashsdk/generators/project_generator.rb
flashsdk-1.0.34.pre lib/flashsdk/generators/project_generator.rb
flashsdk-1.0.33.pre lib/flashsdk/generators/project_generator.rb
flashsdk-1.0.29.pre lib/flashsdk/generators/project_generator.rb