Module: Buildr::AS3::Toolkits::ApparatTasks
- Includes:
- Extension
- Included in:
- Project
- Defined in:
- lib/buildr/as3/toolkits/apparat.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) apparat_reducer(quality)
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/buildr/as3/toolkits/apparat.rb', line 98 def apparat_reducer(quality) output = project.get_as3_output(compile.target, compile.) apparat_tk = compile.[:apparat].invoke cmd_args = [] cmd_args << "#{apparat_tk.reducer}" cmd_args << "-i #{output}" cmd_args << "-o #{output}" cmd_args << "-q" cmd_args << quality || 100 call_system(cmd_args) end |
- (Object) apparat_tdsi(options = {})
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(compile.target, compile.) 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 |