Class: Sprout::MXMLCCruise
- Inherits:
-
MXMLCHelper
- Object
- MXMLCHelper
- Sprout::MXMLCCruise
- Defined in:
- lib/sprout/tasks/mxmlc_ci.rb
Overview
The MXMLCCruise helper wraps up the fdb and mxmlc unit test tasks by using either a Singleton or provided ProjectModel instance.
The simple case that uses a Singleton ProjectModel:
ci :cruise
Using a specific ProjectModel instance:
project_model :model
ci :cruise => :model
Configuring the proxied MXMLCTask
ci :cruise do |t|
t.link_report = 'LinkReport.rpt'
end
Instance Attribute Summary collapse
-
#kill_on_fault ⇒ Object
hack b/c of problems with rake task names and incestuous helpers.
Attributes inherited from MXMLCHelper
Instance Method Summary collapse
- #create_input ⇒ Object
- #create_output ⇒ Object
-
#initialize(args, &block) ⇒ MXMLCCruise
constructor
A new instance of MXMLCCruise.
Methods inherited from MXMLCHelper
#input, #output, #prerequisites, #task_name
Constructor Details
#initialize(args, &block) ⇒ MXMLCCruise
Returns a new instance of MXMLCCruise.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/sprout/tasks/mxmlc_ci.rb', line 24 def initialize(args, &block) super library :asunit3 mxmlc output do |t| configure_mxmlc t configure_mxmlc_application t t.debug = true t.prerequisites << :asunit3 t.source_path << model.test_dir if(model.test_width && model.test_height) t.default_size = "#{model.test_width} #{model.test_height}" end yield t if block_given? end define_fdb t = define_outer_task t.prerequisites << output t.prerequisites << player_task_name end |
Instance Attribute Details
#kill_on_fault ⇒ Object
hack b/c of problems with rake task names and incestuous helpers
22 23 24 |
# File 'lib/sprout/tasks/mxmlc_ci.rb', line 22 def kill_on_fault @kill_on_fault end |
Instance Method Details
#create_input ⇒ Object
52 53 54 55 56 |
# File 'lib/sprout/tasks/mxmlc_ci.rb', line 52 def create_input input = super input.gsub!(/#{input_extension}$/, "XMLRunner#{input_extension}") return input end |
#create_output ⇒ Object
48 49 50 |
# File 'lib/sprout/tasks/mxmlc_ci.rb', line 48 def create_output return "#{create_output_base}XMLRunner.swf" end |