Class: Buildr::AS3::Toolkits::AlchemyToolkit
- Inherits:
-
ZipToolkiteBase
- Object
- ZipToolkiteBase
- Buildr::AS3::Toolkits::AlchemyToolkit
- Defined in:
- lib/buildr/as3/toolkits/alchemy.rb
Instance Attribute Summary collapse
-
#achacks ⇒ Object
readonly
Returns the value of attribute achacks.
-
#alchemy_setup ⇒ Object
readonly
Returns the value of attribute alchemy_setup.
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#flex_sdk ⇒ Object
readonly
Returns the value of attribute flex_sdk.
-
#gcc ⇒ Object
readonly
Returns the value of attribute gcc.
-
#home ⇒ Object
readonly
Returns the value of attribute home.
-
#swfbridge ⇒ Object
readonly
Returns the value of attribute swfbridge.
Instance Method Summary collapse
-
#initialize(flex_sdk) ⇒ AlchemyToolkit
constructor
A new instance of AlchemyToolkit.
- #invoke ⇒ Object
Methods inherited from ZipToolkiteBase
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
#achacks ⇒ Object (readonly)
Returns the value of attribute achacks.
28 29 30 |
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28 def achacks @achacks end |
#alchemy_setup ⇒ Object (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 |
#bin ⇒ Object (readonly)
Returns the value of attribute bin.
28 29 30 |
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28 def bin @bin end |
#flex_sdk ⇒ Object (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 |
#gcc ⇒ Object (readonly)
Returns the value of attribute gcc.
28 29 30 |
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28 def gcc @gcc end |
#home ⇒ Object (readonly)
Returns the value of attribute home.
28 29 30 |
# File 'lib/buildr/as3/toolkits/alchemy.rb', line 28 def home @home end |
#swfbridge ⇒ Object (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
#invoke ⇒ Object
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 |