Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(408)

Side by Side Diff: app/store/env/python.js

Issue 8280044: Implemented the remove_unit functionality
Patch Set: Implemented the remove_unit functionality Created 11 years, 12 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « app/store/env/fakebackend.js ('k') | app/store/env/sandbox.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 'use strict'; 1 'use strict';
2 2
3 /** 3 /**
4 * The Python store environment. 4 * The Python store environment.
5 * 5 *
6 * @module env 6 * @module env
7 * @submodule env.python 7 * @submodule env.python
8 */ 8 */
9 9
10 YUI.add('juju-env-python', function(Y) { 10 YUI.add('juju-env-python', function(Y) {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 * @method remove_units 158 * @method remove_units
159 * @param {Array} unit_names The units to be removed. 159 * @param {Array} unit_names The units to be removed.
160 * @param {Function} callback A callable that must be called once the 160 * @param {Function} callback A callable that must be called once the
161 operation is performed. 161 operation is performed.
162 * @return {undefined} Sends a message to the server only. 162 * @return {undefined} Sends a message to the server only.
163 */ 163 */
164 remove_units: function(unit_names, callback) { 164 remove_units: function(unit_names, callback) {
165 this._send_rpc({ 165 this._send_rpc({
166 'op': 'remove_units', 166 'op': 'remove_units',
167 'unit_names': unit_names}, callback, true); 167 'unit_names': unit_names}, callback, true);
168
169 }, 168 },
170 169
171 /** 170 /**
172 * Add a relation between two services. 171 * Add a relation between two services.
173 * 172 *
174 * @method add_relation 173 * @method add_relation
175 * @param {Object} endpointA An array of [service, interface] representing 174 * @param {Object} endpointA An array of [service, interface] representing
176 the first endpoint to connect. 175 the first endpoint to connect.
177 * @param {Object} endpointB An array of [service, interface] representing 176 * @param {Object} endpointB An array of [service, interface] representing
178 the second endpoint to connect. 177 the second endpoint to connect.
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 environments.PythonEnvironment = PythonEnvironment; 456 environments.PythonEnvironment = PythonEnvironment;
458 457
459 }, '0.1.0', { 458 }, '0.1.0', {
460 requires: [ 459 requires: [
461 'base', 460 'base',
462 'json-parse', 461 'json-parse',
463 'json-stringify', 462 'json-stringify',
464 'juju-env-base' 463 'juju-env-base'
465 ] 464 ]
466 }); 465 });
OLDNEW
« no previous file with comments | « app/store/env/fakebackend.js ('k') | app/store/env/sandbox.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b