Run a `pod` subcommand and buffer the output
npm install exec-pod




Run a pod subcommand and buffer the output like [child_process#execFile][execfile] does
``javascript
const execPod = require('exec-pod');
execPod('search', ['AWS']).then(output => {
output; //=> '-> AWSAPIGateway (2.2.7)\n Amazon Web Services SDK for iOS ...'
});
`
``
npm install exec-pod
and make sure CocoaPods is installed.
`javascript`
const execPod = require('exec-pod');
subcommand: String (one of the pod subcommands to run, e.g. install) Array
args: of strings (arguments passed to the command) Object
options:
Return: Promise instance
It runs the given pod subcommand and returns a Promise instance.
When the command finishes successfilly, it will be fulfilled with the command output.
When it fails to run the command or the command itself fails, it will be rejected with an error.
`javascriptmaster
execPod('install', ['AFNetworking'], {bundleExec: true}).then(output => {
output; //=> 'Updating spec repo ... '`
});
#### Options
All [child_process#execFile][execfile] options and bundleExec option (described below) are available.
##### options.bundleExec
Type: Boolean false
Default:
true runs the pod command with bundle exec, instead of using globally installed pod`.
* exec-pod-callback (Callback-style version)
Copyright (c) 2015 Shinnosuke Watanabe
Licensed under the MIT License.
[execfile]: https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options