Skip to content

Commit c8cf5c6

Browse files
authored
Merge pull request #152 from markbaird/options-in-dynamic-hosts
Make options available in dynamic host functions
2 parents 5b9de0f + 39f4beb commit c8cf5c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function Flightplan() {
157157
* ]);
158158
*
159159
* // run with `fly dynamic-hosts`
160-
* plan.target('dynamic-hosts', function(done) {
160+
* plan.target('dynamic-hosts', function(done, options) {
161161
* var AWS = require('aws-sdk');
162162
* AWS.config.update({accessKeyId: '...', secretAccessKey: '...'});
163163
* var ec2 = new AWS.EC2();
@@ -222,7 +222,7 @@ function Flightplan() {
222222
* flightplan.
223223
*
224224
* ```javascript
225-
* plan.target('dynamic-hosts', function(done) {
225+
* plan.target('dynamic-hosts', function(done, options) {
226226
* var AWS = require('aws-sdk');
227227
* AWS.config.update({accessKeyId: '...', secretAccessKey: '...'});
228228
* var ec2 = new AWS.EC2();
@@ -386,7 +386,7 @@ Flightplan.prototype.run = function(task, target, options) {
386386

387387
config.hosts(function(result) {
388388
future.return(result);
389-
});
389+
}, context.options);
390390

391391
return future;
392392
};

0 commit comments

Comments
 (0)