Module: Buildr::AS3::Toolkits::ApparatTasks
Instance Method Summary collapse
Instance Method Details
#apparat_reducer(options = {}) ⇒ Object
98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/buildr/as3/toolkits/apparat.rb', line 98 def apparat_reducer( ={}) output = project.get_as3_output apparat_tk = compile.[:apparat].invoke cmd_args = [] cmd_args << "#{apparat_tk.reducer}" cmd_args << "-i #{output}" cmd_args << "-o #{output}" reserved = [] .to_hash.reject { |key, value| reserved.include?(key) }. each do |key, value| cmd_args << "-#{key} #{value}" end call_system(cmd_args) end |
#apparat_tdsi(options = {}) ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/buildr/as3/toolkits/apparat.rb', line 83 def apparat_tdsi( = {}) output = project.get_as3_output apparat_tk = compile.[:apparat].invoke cmd_args = [] cmd_args << "#{apparat_tk.tdsi}" cmd_args << "-i #{output}" cmd_args << "-o #{output}" reserved = [] .to_hash.reject { |key, value| reserved.include?(key) }. each do |key, value| cmd_args << "-#{key} #{value}" end call_system(cmd_args) end |