Skip to content

Commit cb750b2

Browse files
committed
readme
1 parent 9ca956d commit cb750b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A node.js wrapper for the [ansible](http://linux.die.net/man/1/ansible) command
1717
Then:
1818

1919
```js
20-
var AnsibleCli = require('ansible-cli-js');
20+
var ansibleCli = require('ansible-cli-js');
2121

2222
```
2323

@@ -26,8 +26,8 @@ var AnsibleCli = require('ansible-cli-js');
2626
With promise:
2727

2828
```js
29-
var Options = AnsibleCli.Options();
30-
var Ansible = new AnsibleCli.Ansible;
29+
var Options = ansibleCli.Options;
30+
var Ansible = ansibleCli.Ansible;
3131

3232
var options = new Options(
3333
/* currentWorkingDirectory */ 'ping'
@@ -49,7 +49,7 @@ With callback:
4949

5050
```js
5151

52-
ansibleCli.command('ansible all -m ping --inventory-file=./inventory --connection=local', function (err, data) {
52+
ansible.command('ansible all -m ping --inventory-file=./inventory --connection=local', function (err, data) {
5353
console.log('data = ', data);
5454
});
5555

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ansible-cli-js",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "A node.js wrapper for the ansible command",
55
"main": "dist/index.js",
66
"typings": "dist/index",

0 commit comments

Comments
 (0)