@@ -85,6 +85,8 @@ def supports?
8585
8686 private
8787
88+ ADDTECHNOLOGIES = 'addtechnologies'
89+
8890 APIURL = 'apiurl'
8991
9092 APITOKEN = 'apitoken'
@@ -113,12 +115,12 @@ def supports?
113115
114116 SKIP_ERRORS = 'skiperrors'
115117
116- private_constant :APIURL , :APITOKEN , :ENABLE_FIPS , :DT_APPLICATION_ID , :DT_CONNECTION_POINT , :DT_NETWORK_ZONE ,
117- :DT_LOGSTREAM , :DT_TENANT , :DT_TENANTTOKEN , :LD_PRELOAD , :ENVIRONMENTID , :FILTER , :NETWORKZONE ,
118- :SKIP_ERRORS
118+ private_constant :ADDTECHNOLOGIES , : APIURL, :APITOKEN , :ENABLE_FIPS , :DT_APPLICATION_ID , :DT_CONNECTION_POINT ,
119+ :DT_NETWORK_ZONE , : DT_LOGSTREAM, :DT_TENANT , :DT_TENANTTOKEN , :LD_PRELOAD , :ENVIRONMENTID ,
120+ :FILTER , :NETWORKZONE , : SKIP_ERRORS
119121
120122 def agent_download_url
121- download_uri = "#{ api_base_url ( credentials ) } /v1/deployment/installer/agent/unix/paas/latest?include=java " \
123+ download_uri = "#{ api_base_url ( credentials ) } /v1/deployment/installer/agent/unix/paas/latest?#{ technologies ( credentials ) } " \
122124 '&bitness=64' \
123125 "&Api-Token=#{ credentials [ APITOKEN ] } "
124126
@@ -127,6 +129,18 @@ def agent_download_url
127129 [ 'latest' , download_uri ]
128130 end
129131
132+ def technologies ( credentials )
133+ code_modules = "include=java"
134+ if not credentials [ ADDTECHNOLOGIES ] . empty?
135+ credentials [ ADDTECHNOLOGIES ] . split ( "," ) . each do |tech |
136+ code_modules += "&include=#{ tech } "
137+ end
138+ end
139+ return code_modules
140+ end
141+
142+ end
143+
130144 def agent_manifest
131145 JSON . parse ( File . read ( @droplet . sandbox + 'manifest.json' ) )
132146 end
0 commit comments