Class: JvmApp

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

Instance Attribute Summary collapse

Attributes inherited from Application

#artifact_id, #artifact_meta_data, #extension, #group_id, #id, #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, url_segment = nil) ⇒ JvmApp

Returns a new instance of JvmApp.



384
385
386
387
388
# File 'lib/conan/manifest_builder.rb', line 384

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_repoObject

Returns the value of attribute artifact_repo.



382
383
384
# File 'lib/conan/manifest_builder.rb', line 382

def artifact_repo
  @artifact_repo
end

#sha1Object

Returns the value of attribute sha1.



382
383
384
# File 'lib/conan/manifest_builder.rb', line 382

def sha1
  @sha1
end

Instance Method Details

#download(location) ⇒ Object



390
391
392
393
394
# File 'lib/conan/manifest_builder.rb', line 390

def download(location)
  super
  puts "- Provision NewRelic Agent jar"    
  @artifact_repo.downloadNewRelicAgent(File.join(location, @artifact_id), '3.2.3', 'c07cd82e033af9628cd7f90df874daee7000e471')    
end