Commit 987c17de authored by Efthymia Bika's avatar Efthymia Bika

Use child_process.spawn instead of exec

This allows better activity report by streaming output data on screen
and preventing buffer issues.
Also refactored in order to call duplicity from one place only
parent 617a8ba8
......@@ -473,13 +473,13 @@ along with this program. If not, see <>.
<div class="small-4 columns">
<a id="remove-all-button" class="button radius right small"
onclick="if(check_remove_all()) {
remove_all($('#remove-all').val(), false);
<i class="fa fa-trash-o"></i>&nbsp;Remove All</a>
<div class="small-4 columns hide" id="force-delete">
<a id="remove-all-button-force" class="button radius right small alert"
onclick="if(check_remove_all()) remove_all($('#remove-all').val(), true)">
onclick="if(check_remove_all()) remove_all(true)">
<i class="fa fa-trash-o"></i>&nbsp;Force Delete</a>
......@@ -19,6 +19,7 @@ var mkdirp = require("mkdirp");
var exec = require('child_process').exec;
var execFileSync = require('child_process').execFileSync;
var execFile = require('child_process').execFile;
var spawn = require('child_process').spawn;
var BAAS_HOME_DIR = '.baas';
var CLOUDS_CONF_FILE = 'clouds.rc';
This diff is collapsed.
......@@ -88,6 +88,8 @@ body legend, .template-list-title {
#msg, #cleanup-msg {
word-break: break-word;
margin-right: 15px;
overflow: auto;
max-height: 200px;
.dir-field {
overflow-x: auto;
......@@ -177,7 +177,7 @@ function load_timeview() {
function puts(error, stdout, stderr) {
toggle_error(error, stderr);
if(!error) {
if(!parse_cloud_error(stderr) && !error) {
var datetime_reg = /\d{4}-\d{2}-\d{2}.\d{2}:\d{2}:\d{2}\s+\d+/g;
var dates = stdout.match(datetime_reg);
var dates_list = "";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment