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

- (FlexSDK) initialize(version)

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

- (Object) adl (readonly)

Returns the value of attribute adl



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

def adl
  @adl
end

- (Object) adt_jar (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

- (Object) air_config

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

- (Object) asdoc_jar (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

- (Object) asdoc_templates

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

- (Object) bin (readonly)

Returns the value of attribute bin



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

def bin
  @bin
end

- (Object) compc_jar (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

- (Object) default_options (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

- (Object) fcsh_jar (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

- (Object) flex_config

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

- (Object) home (readonly)

Returns the value of attribute home



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

def home
  @home
end

- (Object) mxmlc_jar (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

- (Object) from(url)

: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

- (Object) invoke

: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