Class: FlashSDK::FlexProjectGenerator

Inherits:
ProjectGenerator show all
Defined in:
lib/flashsdk/generators/flex_project_generator.rb

Instance Method Summary collapse

Methods inherited from ProjectGenerator

#test

Methods inherited from ClassGenerator

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

Instance Method Details

#manifestObject



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

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

    directory src do
      template "#{input.camel_case}.mxml", 'Flex4Application.mxml'
      template "#{test_runner_name}.mxml", 'Flex4RunnerClass.mxml'

      directory assets do
        directory css do
          file 'Main.css', 'Flex4Main.css'
        end
        directory images
        directory fonts
      end

    end

    # Create empty directories:
    directory lib
    directory bin
  end
end