Class: Jnlp::VersionedJnlpUrl
- Inherits:
-
Object
- Object
- Jnlp::VersionedJnlpUrl
- Defined in:
- lib/jnlp/maven_jnlp.rb
Overview
VersionedJnlpUrl
Encapsulates a versioned jnlp in a Maven Jnlp Web Start server.
Jnlp::VersionedJnlpUrl.new(family_name, path, base_url)
Example:
require 'jnlp'
vju = Jnlp::VersionedJnlpUrl("concord", "/dev/org/concord/maven-jnlp/", "http://jnlp.concord.org")
Example:
vju = Jnlp::VersionedJnlpUrl("concord", "/dev/org/concord/maven-jnlp/", "http://jnlp.concord.org")
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Contains the the full path to the jnlp.
-
#url ⇒ Object
readonly
Contains the the full url to the jnlp.
-
#version ⇒ Object
readonly
Contains the maven-jnlp version string for the jnlp .
Instance Method Summary collapse
-
#initialize(family_name, path, base_url) ⇒ VersionedJnlpUrl
constructor
Pass in:.
Constructor Details
#initialize(family_name, path, base_url) ⇒ VersionedJnlpUrl
Pass in:
family_name, path, base_url
49 50 51 52 53 |
# File 'lib/jnlp/maven_jnlp.rb', line 49 def initialize(family_name, path, base_url) @path = path @url = base_url + @path @version = @url[/#{family_name}\/#{family_name}-(.*)\.jnlp/, 1] end |
Instance Attribute Details
#path ⇒ Object (readonly)
Contains the the full path to the jnlp
"/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20070420.131610.jnlp"
30 31 32 |
# File 'lib/jnlp/maven_jnlp.rb', line 30 def path @path end |
#url ⇒ Object (readonly)
Contains the the full url to the jnlp
"http://jnlp.concord.org/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20090327.222627.jnlp"
36 37 38 |
# File 'lib/jnlp/maven_jnlp.rb', line 36 def url @url end |
#version ⇒ Object (readonly)
Contains the maven-jnlp version string for the jnlp
"0.1.0-20090327.222627"
43 44 45 |
# File 'lib/jnlp/maven_jnlp.rb', line 43 def version @version end |