File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
version : 4.1.+
19
19
repository_root : ! ' {default.repository.root}/app-dynamics'
20
20
default_application_name :
21
- default_node_name : ! ' $(expr "$VCAP_APPLICATION" : '' .*application_name[": ]*\([-_a-zA-Z0-9]*\).* '' ):$(expr "$ VCAP_APPLICATION" : '' .*instance_index[": ]*\([[:digit:]]*\).* '' )'
21
+ default_node_name : ! ' $(ruby -e "require '' json '' ; a = JSON.parse(ENV[ '' VCAP_APPLICATION'' ]); puts \"#{a[ '' application_name '' ]}:#{a[ '' instance_index '' ]}\"" )'
22
22
default_tier_name :
Original file line number Diff line number Diff line change 17
17
---
18
18
repository_root : " "
19
19
version : 9.7.+
20
- default_agent_name : " $(expr \" $VCAP_APPLICATION \" : \' .*application_name[ \" : ]* \\ ([A-Za-z0-9_-]* \\ ).* \' ) "
20
+ default_agent_name : ! ' $(ruby -e "require '' json '' ; puts JSON.parse(ENV[ '' VCAP_APPLICATION '' ])[ '' application_name '' ]") '
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ version: 2015.+
19
19
repository_root : ! ' {default.repository.root}/your-kit/{platform}/{architecture}'
20
20
enabled : false
21
21
port : 10001
22
- default_session_name : ! ' $(expr "$VCAP_APPLICATION" : '' .*application_name[": ]*\([-_a-zA-Z0-9]*\).* '' ):$(expr "$ VCAP_APPLICATION" : '' .*instance_index[": ]*\([[:digit:]]*\).* '' )'
22
+ default_session_name : ! ' $(ruby -e "require '' json '' ; a = JSON.parse(ENV[ '' VCAP_APPLICATION'' ]); puts \"#{a[ '' application_name '' ]}:#{a[ '' instance_index '' ]}\"" )'
You can’t perform that action at this time.
0 commit comments