Class: Buildr::AS3::Toolkits::FlexSDK
- Inherits:
-
ZipToolkiteBase
- Object
- ZipToolkiteBase
- Buildr::AS3::Toolkits::FlexSDK
- Defined in:
- lib/buildr/as3/toolkits/flexsdk.rb
Instance Attribute Summary collapse
-
#adl ⇒ Object
readonly
Returns the value of attribute adl.
-
#adt_jar ⇒ Object
readonly
Returns the value of attribute adt_jar.
-
#air_config ⇒ Object
Returns the value of attribute air_config.
-
#asdoc_jar ⇒ Object
readonly
Returns the value of attribute asdoc_jar.
-
#asdoc_templates ⇒ Object
Returns the value of attribute asdoc_templates.
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#compc_jar ⇒ Object
readonly
Returns the value of attribute compc_jar.
-
#default_options ⇒ Object
readonly
Returns the value of attribute default_options.
-
#fcsh_jar ⇒ Object
readonly
Returns the value of attribute fcsh_jar.
-
#flex_config ⇒ Object
Returns the value of attribute flex_config.
-
#home ⇒ Object
readonly
Returns the value of attribute home.
-
#mxmlc_jar ⇒ Object
readonly
Returns the value of attribute mxmlc_jar.
Instance Method Summary collapse
-
#from(url) ⇒ Object
:call-seq: from(url) => self.
-
#initialize(version) ⇒ FlexSDK
constructor
A new instance of FlexSDK.
-
#invoke ⇒ Object
:nodoc:.
Constructor Details
#initialize(version) ⇒ FlexSDK
Returns a new instance of FlexSDK.
33 34 35 36 37 38 39 40 41 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 33 def initialize(version) @version = version @default_options = [] @spec = "com.adobe.flex:sdk:zip:#{@version}" @zip = Buildr.artifact(@spec) @zip_destination = File.join(File.dirname(@zip.to_s), "sdk-#{@version}") generate_paths @zip_destination self end |
Instance Attribute Details
#adl ⇒ Object (readonly)
Returns the value of attribute adl.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def adl @adl end |
#adt_jar ⇒ Object (readonly)
Returns the value of attribute adt_jar.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def adt_jar @adt_jar end |
#air_config ⇒ Object
Returns the value of attribute air_config.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def air_config @air_config end |
#asdoc_jar ⇒ Object (readonly)
Returns the value of attribute asdoc_jar.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def asdoc_jar @asdoc_jar end |
#asdoc_templates ⇒ Object
Returns the value of attribute asdoc_templates.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def asdoc_templates @asdoc_templates end |
#bin ⇒ Object (readonly)
Returns the value of attribute bin.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def bin @bin end |
#compc_jar ⇒ Object (readonly)
Returns the value of attribute compc_jar.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def compc_jar @compc_jar end |
#default_options ⇒ Object (readonly)
Returns the value of attribute default_options.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def @default_options end |
#fcsh_jar ⇒ Object (readonly)
Returns the value of attribute fcsh_jar.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def fcsh_jar @fcsh_jar end |
#flex_config ⇒ Object
Returns the value of attribute flex_config.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def flex_config @flex_config end |
#home ⇒ Object (readonly)
Returns the value of attribute home.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def home @home end |
#mxmlc_jar ⇒ Object (readonly)
Returns the value of attribute mxmlc_jar.
28 29 30 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 28 def mxmlc_jar @mxmlc_jar end |
Instance Method Details
#from(url) ⇒ Object
:call-seq:
from(url) => self
-
You can pass a url where the FlexSDK should be downloaded from as a string:
FLEX_SDK.from(“domain.tld/flex_sdk.zip”)
-
You can pass :maven as a parameter to download it from a maven repository:
FLEX_SDK.from(:maven)
-
If you don’t call this function at all, buildr-as3 will try and resolve a url on the adobe-website
to download the FlexSDK
58 59 60 61 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 58 def from(url) @url = url self end |
#invoke ⇒ Object
:nodoc:
43 44 45 46 47 |
# File 'lib/buildr/as3/toolkits/flexsdk.rb', line 43 def invoke #:nodoc: @url ||= generate_url_from_version @version super self end |