Class: Buildr::AS3::Packaging::SwfTask
- Inherits:
-
Rake::FileTask
- Object
- Rake::FileTask
- Buildr::AS3::Packaging::SwfTask
- Includes:
- Compiler::CompilerUtils, Extension
- Defined in:
- lib/buildr/as3/packaging.rb
Instance Attribute Summary collapse
-
#src_swf ⇒ Object
Returns the value of attribute src_swf.
-
#target_swf ⇒ Object
Returns the value of attribute target_swf.
Instance Method Summary collapse
-
#initialize(*args) ⇒ SwfTask
constructor
:nodoc:.
- #needed? ⇒ Boolean
Methods included from Compiler::CompilerUtils
#append_args, #get_last_modified, get_output, #is_output_outdated?, #move_dependency_dirs_to_source, #older, #reserved_options, #timestamp_from_file
Constructor Details
#initialize(*args) ⇒ SwfTask
:nodoc:
69 70 71 72 73 74 75 |
# File 'lib/buildr/as3/packaging.rb', line 69 def initialize(*args) #:nodoc: super enhance do fail "File not found: #{src_swf}" unless File.exists? src_swf File.copy(src_swf, target_swf) end end |
Instance Attribute Details
#src_swf ⇒ Object
Returns the value of attribute src_swf.
67 68 69 |
# File 'lib/buildr/as3/packaging.rb', line 67 def src_swf @src_swf end |
#target_swf ⇒ Object
Returns the value of attribute target_swf.
67 68 69 |
# File 'lib/buildr/as3/packaging.rb', line 67 def target_swf @target_swf end |
Instance Method Details
#needed? ⇒ Boolean
77 78 79 |
# File 'lib/buildr/as3/packaging.rb', line 77 def needed? is_output_outdated? target_swf, src_swf end |