Class: FlashSDK::ProjectGenerator

Inherits:
ClassGenerator
  • Object
show all
Includes:
FlashHelper
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_class

Instance Method Details

#manifestObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/flashsdk/generators/project_generator.rb', line 9

def manifest
  directory input do
    template 'rakefileFlashsdk.rb'
    template 'Gemfile'

    directory src do
      template "#{test_runner_name}.as", 'ActionScript3RunnerClass.as'
      template 'FlashSDKListener.as', 'FlashSDKListener.as'
    end

    # Create empty directories:
    directory lib
  end
end

#testObject



24
25
26
# File 'lib/flashsdk/generators/project_generator.rb', line 24

def test
  "#{class_name}/test"
end