Class: Buildr::AS3::Toolkits::FlexSDK

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#adlObject (readonly)

Returns the value of attribute adl.



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

def adl
  @adl
end

#adt_jarObject (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_configObject

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_jarObject (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_templatesObject

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

#binObject (readonly)

Returns the value of attribute bin.



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

def bin
  @bin
end

#compc_jarObject (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_optionsObject (readonly)

Returns the value of attribute default_options.



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

def default_options
  @default_options
end

#fcsh_jarObject (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_configObject

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

#homeObject (readonly)

Returns the value of attribute home.



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

def home
  @home
end

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

#invokeObject

: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