Class: JvmApp

Inherits:
Application show all
Defined in:
lib/conan/jvm_app.rb

Instance Attribute Summary collapse

Attributes inherited from Application

#artifact_id, #artifact_meta_data, #extension, #group_id, #id, #infra, #org, #platform_type, #url_segment, #version

Instance Method Summary collapse

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, options, url_segment=nil)
  super(id, project_name, :jvm, options, url_segment)
  @sha1 = nil
  @artifact_repo = artifact_repo
end

Instance Attribute Details

#artifact_repoObject

Returns the value of attribute artifact_repo.



3
4
5
# File 'lib/conan/jvm_app.rb', line 3

def artifact_repo
  @artifact_repo
end

#sha1Object

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