Class: Airake::Projects::Flash

Inherits:
Airake::Project show all
Defined in:
lib/airake/projects/flash.rb

Overview

Project for Flash

Instance Attribute Summary collapse

Attributes inherited from Airake::Project

#base_dir, #debug, #env, #lib_dir, #src_dirs, #swf_path

Instance Method Summary collapse

Methods inherited from Airake::Project

#asdoc, #clean, #initialize

Constructor Details

This class inherits a constructor from Airake::Project

Instance Attribute Details

#target_fileObject (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(options = {})
  super(options)
  with_keyed_options([ :target_file ], options)
  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(options = {})
  options = options.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(options)
end