Class: FlashSDK::FlexProjectGenerator

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

Constant Summary

Constants included from Sprout::Executable

DEFAULT_FILE_EXPRESSION, DEFAULT_PREFIX, DEFAULT_SHORT_PREFIX

Instance Method Summary (collapse)

Methods included from FlashHelper

#actionscript_file_to_class_name, #class_directory, #class_name, #debug_swf_name, #default_package_name, #deploy_swf_name, #fully_qualified_class_name, #input_in_parts, #instance_name, #package_directory, #package_name, #project_name, #remove_file_extensions, #remove_slashes, #split_package, #test_case_classes, #test_cases, #test_cases=, #test_class_directory, #test_class_name, #test_glob, #test_glob=, #test_runner_name, #test_swf_name

Methods inherited from Sprout::Generator::Base

#create_template_paths, #default_search_paths, #directory, #do_show_template_paths, #execute, #file, #generator, inherited, #prepare_command, #resolve_template, #say, #template, #template_paths, #unexecute, #validate

Methods inherited from Sprout::Executable::Base

add_param, add_param_alias, #binary_path, #binary_path=, #create_outer_task, #default_file_expression, #execute, #execute_delegate, #from_hash, #initialize, #library_added, #parse!, #parse_extra_options!, #parse_rake_task_arg, #prepare, set, static_default_value_collection, static_parameter_collection, #stderr, #stderr=, #stdout, #stdout=, #system_execute, #to_hash, #to_help, #to_rake, #to_shell, #update_rake_task_name_from_args

Methods included from Sprout::Concern

#append_features, extended, #included

Constructor Details

This class inherits a constructor from Sprout::Executable::Base

Instance Method Details

- (Object) manifest



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 'flashsdk/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