From 9b86a972e92f2b64fa2f9440c8bfb0026147d18d Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Sat, 16 Jul 2016 16:57:43 -0700 Subject: [PATCH] Update readme with library example --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a0cff46..79b4165 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,10 @@ This cli tool uses the [vmpooler API](https://github.com/puppetlabs/vmpooler/blo ## Using the Pooler class +An example of an application using vmfloaty as a library can be seen in [vagrant-vmpooler](https://github.com/briancain/vagrant-vmpooler). + +### Scripting + If you want to write some ruby scripts around the vmpooler api, vmfloaty provides a `Pooler` and `Auth` class to make things easier. The ruby script below shows off an example of a script that gets a token, grabs a vm, runs some commands through ssh, and then destroys the vm. ```ruby