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

#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(options ={})
  output = project.get_as3_output
  apparat_tk = compile.options[:apparat].invoke
  cmd_args = []
  cmd_args << "#{apparat_tk.reducer}"
  cmd_args << "-i #{output}"
  cmd_args << "-o #{output}"
  reserved = []
  options.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(options = {})
  output = project.get_as3_output
  apparat_tk = compile.options[:apparat].invoke
  cmd_args = []
  cmd_args << "#{apparat_tk.tdsi}"
  cmd_args << "-i #{output}"
  cmd_args << "-o #{output}"
  reserved = []
  options.to_hash.reject { |key, value| reserved.include?(key) }.
      each do |key, value|
        cmd_args << "-#{key} #{value}"
  end
  call_system(cmd_args)
end