[
https://issues.jboss.org/browse/JBDS-2778?page=com.atlassian.jira.plugin....
]
Andre Dietisheim commented on JBDS-2778:
----------------------------------------
it looks like it's easy enough to support both forms of snapshot. The differences are
minimal:
* both use ssh
* both stream the output to a file locally
* they only differ in the command being executed:
* full snapshot does "snapshot"
* deployment snapshot does "gear archive-deployment"
The relevant rhc code looks as follows:
{code;title=https://github.com/openshift/rhc/blob/master/lib/rhc/ssh_helpers.rb#L251}
def save_snapshot(app, filename, for_deployment=false, ssh_executable=nil)
ssh_uri = URI.parse(app.ssh_url)
ssh_executable = check_ssh_executable! ssh_executable
snapshot_cmd = for_deployment ? 'gear archive-deployment' :
'snapshot'
ssh_cmd = "#{ssh_executable} #{ssh_uri.user}(a)#{ssh_uri.host}
'#{snapshot_cmd}' > #{filename}"
ssh_stderr = " 2>/dev/null"
debug ssh_cmd
{code}
Support New Binary Deployment mode
----------------------------------
Key: JBDS-2778
URL:
https://issues.jboss.org/browse/JBDS-2778
Project: Developer Studio (JBoss Developer Studio)
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: openshift, requirements
Reporter: Max Rydahl Andersen
Assignee: Andre Dietisheim
Priority: Blocker
Fix For: 8.0.0.GA
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)