Class: Buildr::AS3::Toolkits::AlchemyToolkit

Inherits:
ZipToolkiteBase show all
Defined in:
lib/buildr/as3/toolkits/alchemy.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ZipToolkiteBase

#from

Constructor Details

- (AlchemyToolkit) initialize(flex_sdk)

Returns a new instance of AlchemyToolkit



30
31
32
33
34
35
36
37
38
39
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 30

def initialize(flex_sdk)
  @version = "1.0-PR1"
  @system = Buildr::Util.win_os? ? "win" : "unix"
  @spec = "com.adobe.alchemy:toolkit:zip:#{@system}:#{@version}"
  @flex_sdk = flex_sdk
  @zip = Buildr.artifact(@spec)
  @zip_destination = File.join(File.dirname(@zip.to_s), "alchemy-#{@system}-#{@version}", get_alchemy_toolkit_subfolder(@system) )
  generate_paths @zip_destination
  self
end

Instance Attribute Details

- (Object) achacks (readonly)

Returns the value of attribute achacks



28
29
30
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28

def achacks
  @achacks
end

- (Object) alchemy_setup (readonly)

Returns the value of attribute alchemy_setup



28
29
30
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28

def alchemy_setup
  @alchemy_setup
end

- (Object) bin (readonly)

Returns the value of attribute bin



28
29
30
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28

def bin
  @bin
end

- (Object) flex_sdk (readonly)

Returns the value of attribute flex_sdk



28
29
30
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28

def flex_sdk
  @flex_sdk
end

- (Object) gcc (readonly)

Returns the value of attribute gcc



28
29
30
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28

def gcc
  @gcc
end

- (Object) home (readonly)

Returns the value of attribute home



28
29
30
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28

def home
  @home
end

- (Object) swfbridge (readonly)

Returns the value of attribute swfbridge



28
29
30
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28

def swfbridge
  @swfbridge
end

Instance Method Details

- (Object) invoke



41
42
43
44
45
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 41

def invoke
  super
  setup unless File.exists? @alchemy_setup
  self
end