Class: Airake::Projects::Flash
- Inherits:
-
Airake::Project
- Object
- Airake::Project
- Airake::Projects::Flash
- Defined in:
- lib/airake/projects/flash.rb
Overview
Project for Flash
Instance Attribute Summary collapse
-
#target_file ⇒ Object
readonly
Returns the value of attribute target_file.
Attributes inherited from Airake::Project
#base_dir, #debug, #env, #lib_dir, #src_dirs, #swf_path
Instance Method Summary collapse
-
#load(options = {}) ⇒ Object
Load options.
-
#mxmlc(options = {}) ⇒ Object
Flex compiler command for this project.
Methods inherited from Airake::Project
Constructor Details
This class inherits a constructor from Airake::Project
Instance Attribute Details
#target_file ⇒ Object (readonly)
Returns the value of attribute target_file.
8 9 10 |
# File 'lib/airake/projects/flash.rb', line 8 def target_file @target_file end |
Instance Method Details
#load(options = {}) ⇒ Object
Load options
options
: If nil, options are loaded from airake.yml in root. (All paths relative to base directory)
-
target_file
: Path to target file
15 16 17 18 19 |
# File 'lib/airake/projects/flash.rb', line 15 def load( = {}) super() ([ :target_file ], ) ensure_exists([ @target_file ]) end |
#mxmlc(options = {}) ⇒ Object
Flex compiler command for this project
22 23 24 25 26 27 28 |
# File 'lib/airake/projects/flash.rb', line 22 def mxmlc( = {}) = .merge({ :swf_path => @swf_path, :target_file => @target_file, :lib_dir => @lib_dir, :src_dirs => @src_dirs, :debug => @debug, :mxmlc_extra_opts => @mxmlc_extra_opts, :mxmlc_path => @mxmlc_path }) Airake::Commands::Mxmlc.new() end |