Class: JvmApp
- Inherits:
-
Application
- Object
- Application
- JvmApp
- Defined in:
- lib/conan/jvm_app.rb
Instance Attribute Summary collapse
-
#artifact_repo ⇒ Object
Returns the value of attribute artifact_repo.
-
#sha1 ⇒ Object
Returns the value of attribute sha1.
Attributes inherited from Application
#artifact_id, #artifact_meta_data, #extension, #group_id, #id, #infra, #org, #platform_type, #url_segment, #version
Instance Method Summary collapse
- #download(location) ⇒ Object
-
#initialize(id, project_name, artifact_repo, options, url_segment = nil) ⇒ JvmApp
constructor
A new instance of JvmApp.
Methods inherited from Application
#compareVersion, #findRequestedVersion, #isDeployedAt, #readArtifactMetadata, #to_s
Constructor Details
#initialize(id, project_name, artifact_repo, options, url_segment = nil) ⇒ JvmApp
Returns a new instance of JvmApp.
5 6 7 8 9 |
# File 'lib/conan/jvm_app.rb', line 5 def initialize(id, project_name, artifact_repo, , url_segment=nil) super(id, project_name, :jvm, , url_segment) @sha1 = nil @artifact_repo = artifact_repo end |
Instance Attribute Details
#artifact_repo ⇒ Object
Returns the value of attribute artifact_repo.
3 4 5 |
# File 'lib/conan/jvm_app.rb', line 3 def artifact_repo @artifact_repo end |
#sha1 ⇒ Object
Returns the value of attribute sha1.
3 4 5 |
# File 'lib/conan/jvm_app.rb', line 3 def sha1 @sha1 end |
Instance Method Details
#download(location) ⇒ Object
11 12 13 14 15 |
# File 'lib/conan/jvm_app.rb', line 11 def download(location) super puts "- Provision NewRelic Agent jar" @artifact_repo.downloadNewRelicAgent(File.join(location, @artifact_id), '3.2.3', 'c07cd82e033af9628cd7f90df874daee7000e471') end |