mirror of https://github.com/docker/docs.git
Renamed image rebuild functions.
This commit is contained in:
parent
4ddcc92b9e
commit
9ff6af34d5
|
@ -32,7 +32,7 @@ AppUtil.restartHelper = function (app) {
|
|||
docker: data
|
||||
}});
|
||||
// Use dig to refresh the DNS
|
||||
// exec('/usr/bin/dig dig ' + app.name + '.kite @172.17.42.1 ', function() {});
|
||||
exec('/usr/bin/dig dig ' + app.name + '.kite @172.17.42.1', function() {});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ ImageUtil.saveFolder = function (directory, imageId, callback) {
|
|||
}
|
||||
};
|
||||
|
||||
ImageUtil.rebuild = function (image, callback) {
|
||||
ImageUtil.rebuildHelper = function (image, callback) {
|
||||
Util.deleteFolder(image.path);
|
||||
var imageMetaData = ImageUtil.getMetaData(image.originPath);
|
||||
if (imageMetaData.logo) {
|
||||
|
@ -91,7 +91,7 @@ ImageUtil.rebuild = function (image, callback) {
|
|||
});
|
||||
};
|
||||
|
||||
ImageUtil.rebuildImage = function (imageId) {
|
||||
ImageUtil.rebuild = function (imageId) {
|
||||
var image = Images.findOne(imageId);
|
||||
if (!image) {
|
||||
throw new Meteor.Error(403, "No image found with this ID.");
|
||||
|
@ -113,7 +113,7 @@ ImageUtil.rebuildImage = function (imageId) {
|
|||
}
|
||||
});
|
||||
});
|
||||
ImageUtil.rebuild(image, function (err) {
|
||||
ImageUtil.rebuildHelper(image, function (err) {
|
||||
if (err) { console.error(err); }
|
||||
});
|
||||
_.each(apps, function (app) {
|
||||
|
@ -123,7 +123,7 @@ ImageUtil.rebuildImage = function (imageId) {
|
|||
});
|
||||
});
|
||||
} else {
|
||||
ImageUtil.rebuild(image, function (err) {
|
||||
ImageUtil.rebuildHelper(image, function (err) {
|
||||
if (err) { console.error(err); }
|
||||
});
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ Template.dashboard_single_image.events({
|
|||
},
|
||||
'click .btn-rebuild': function () {
|
||||
$('.btn-icon').tooltip('hide');
|
||||
ImageUtil.rebuildImage(this._id, function (err) {
|
||||
ImageUtil.rebuild(this._id, function (err) {
|
||||
if (err) { console.error(err); }
|
||||
});
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ Template.dashboard_images_layout.events({
|
|||
},
|
||||
'click .btn-rebuild': function () {
|
||||
$('.header .icons a').tooltip('hide');
|
||||
ImageUtil.rebuildImage(this._id, function (err) {
|
||||
ImageUtil.rebuild(this._id, function (err) {
|
||||
if (err) { console.error(err); }
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue