README.md in cmds-0.0.9 vs README.md in cmds-0.1.0
- old
+ new
@@ -242,11 +242,11 @@
though keys with those names may be accessed directly via `@kwds.fetch(key)` and the like.
to test for a key's presence or optionally include a value, append `?` to the method name:
```
-c = Cmds.new <<-BLOCK
+c = Cmds::Cmd.new <<-BLOCK
defaults
<% if current_host? %>
-currentHost <%= current_host %>
<% end %>
export <%= domain %> <%= filepath %>
@@ -348,11 +348,11 @@
## reuse commands
```
-playbook = Cmds.new "ansible-playbook -i %{inventory} %{playbook}"
+playbook = Cmds::Cmd.new "ansible-playbook -i %{inventory} %{playbook}"
playbook.call inventory: "./hosts", playbook: "blah.yml"
```
currying
@@ -374,11 +374,11 @@
NEEDS TEST
can be accomplished with reuse and currying stuff
```
-playbook = Cmds.new "ansible-playbook -i %{inventory} %{playbook}", inventory: "inventory/dev"
+playbook = Cmds::Cmd.new "ansible-playbook -i %{inventory} %{playbook}", inventory: "inventory/dev"
# run setup.yml on the development hosts
playbook.call playbook: "setup.yml"
# run setup.yml on the production hosts
@@ -388,10 +388,10 @@
## input
```
-c = Cmds.new("wc", input: "blah blah blah).call
+c = Cmds::Cmd.new("wc", input: "blah blah blah).call
```
## future..?