Module: FlexCompiler
- Defined in:
- lib/flex_compiler.rb
Defined Under Namespace
Modules: ClassMethods
Classes: CompcOpts, GenericOpts, MxmlcOpts
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.artifact_root ⇒ Object
9
10
11
|
# File 'lib/flex_compiler.rb', line 9
def self.artifact_root
"./build/"
end
|
.included(base) ⇒ Object
13
14
15
|
# File 'lib/flex_compiler.rb', line 13
def self.included(base)
base.extend(ClassMethods)
end
|
Instance Method Details
#artifact_path(type) ⇒ Object
28
29
30
|
# File 'lib/flex_compiler.rb', line 28
def artifact_path(type)
self.class.send(:artifact_path,type)
end
|
#compc(opts = "") ⇒ Object
32
33
34
35
36
|
# File 'lib/flex_compiler.rb', line 32
def compc(opts="")
command = "#{Shell.escape File.join(sdk_dir,"bin","compc")} #{opts.to_s}"
puts command
`#{command}`
end
|
#mxmlc(target, opts = "") ⇒ Object
38
39
40
41
42
|
# File 'lib/flex_compiler.rb', line 38
def mxmlc(target,opts="")
command = "#{Shell.escape File.join(sdk_dir,"bin","mxmlc")} #{opts.to_s} -- #{target}"
puts command
`#{command}`
end
|
#sdk_config ⇒ Object
48
49
50
|
# File 'lib/flex_compiler.rb', line 48
def sdk_config
FlexSDK.new.config
end
|
#sdk_dir ⇒ Object
44
45
46
|
# File 'lib/flex_compiler.rb', line 44
def sdk_dir
sdk_config["sdk_dir"]
end
|