Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefamar committed Mar 29, 2017
1 parent d6f3e9c commit 0c79516
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ var Container = function(modem, id) {
};
};

Container.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Inspect
* @param {Options} opts Options (optional)
Expand Down
2 changes: 2 additions & 0 deletions lib/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var Exec = function(modem, id) {
this.id = id;
};

Exec.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Start the exec call that was setup.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var Image = function(modem, name) {
this.name = name;
};

Image.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Inspect
* @param {Function} callback Callback, if specified Docker will be queried.
Expand Down
2 changes: 2 additions & 0 deletions lib/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var Network = function(modem, id) {
this.id = id;
};

Network.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Inspect
* @param {Function} callback Callback, if specified Docker will be queried.
Expand Down
2 changes: 2 additions & 0 deletions lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var Node = function(modem, id) {
this.id = id;
};

Node.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Query Docker for Node details.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ var Plugin = function(modem, name, remote) {
this.remote = remote || name;
};

Plugin.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Inspect
* @param {Function} callback Callback, if specified Docker will be queried.
Expand Down
2 changes: 2 additions & 0 deletions lib/secret.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var Secret = function(modem, id) {
this.id = id;
};

Secret.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Inspect
* @param {Function} callback Callback, if specified Docker will be queried.
Expand Down
1 change: 1 addition & 0 deletions lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var Service = function(modem, id) {
this.id = id;
};

Service.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Query Docker for service details.
Expand Down
2 changes: 2 additions & 0 deletions lib/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var Task = function(modem, id) {
this.id = id;
};

Task.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Query Docker for Task details.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/volume.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var Volume = function(modem, name) {
this.name = name;
};

Volume.prototype[require('util').inspect.custom] = function() { return this; };

/**
* Inspect
* @param {Function} callback Callback, if specified Docker will be queried.
Expand Down

0 comments on commit 0c79516

Please sign in to comment.