OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |