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

#initialize(flex_sdk) ⇒ AlchemyToolkit

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

#achacksObject (readonly)

Returns the value of attribute achacks.



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

def achacks
  @achacks
end

#alchemy_setupObject (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

#binObject (readonly)

Returns the value of attribute bin.



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

def bin
  @bin
end

#flex_sdkObject (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

#gccObject (readonly)

Returns the value of attribute gcc.



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

def gcc
  @gcc
end

#homeObject (readonly)

Returns the value of attribute home.



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

def home
  @home
end

#swfbridgeObject (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

#invokeObject



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