Class: Sprout::MXMLCSWC
- Inherits:
-
MXMLCHelper
- Object
- MXMLCHelper
- Sprout::MXMLCSWC
- Defined in:
- lib/sprout/tasks/mxmlc_swc.rb
Overview
Instance Attribute Summary
Attributes inherited from MXMLCHelper
Instance Method Summary collapse
- #create_input ⇒ Object
- #create_output ⇒ Object
-
#initialize(args, &block) ⇒ MXMLCSWC
constructor
A new instance of MXMLCSWC.
Methods inherited from MXMLCHelper
#input, #output, #prerequisites, #task_name
Constructor Details
#initialize(args, &block) ⇒ MXMLCSWC
Returns a new instance of MXMLCSWC.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/sprout/tasks/mxmlc_swc.rb', line 22 def initialize(args, &block) super outer_task = define_outer_task compc output do |t| configure_mxmlc t configure_mxmlc_application t t.input = input yield t if block_given? end outer_task.prerequisites << output return outer_task end |
Instance Method Details
#create_input ⇒ Object
41 42 43 |
# File 'lib/sprout/tasks/mxmlc_swc.rb', line 41 def create_input return @model.project_name end |
#create_output ⇒ Object
37 38 39 |
# File 'lib/sprout/tasks/mxmlc_swc.rb', line 37 def create_output return "#{create_output_base}.swc" end |