Class: FlashSDK::ProjectGenerator

Inherits:
ClassGenerator
  • Object
show all
Defined in:
lib/flashsdk/generators/project_generator.rb

Direct Known Subclasses

FlexProjectGenerator

Instance Method Summary collapse

Methods inherited from ClassGenerator

#assets, #bin, #doc, #lib, #package, #skins, #src, #test, #test_class

Instance Method Details

#manifestObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/flashsdk/generators/project_generator.rb', line 8

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