mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21:28:40 -05:00
Update readme with library example
This commit is contained in:
parent
1331a48bb2
commit
9b86a972e9
1 changed files with 4 additions and 0 deletions
|
|
@ -91,6 +91,10 @@ This cli tool uses the [vmpooler API](https://github.com/puppetlabs/vmpooler/blo
|
||||||
|
|
||||||
## Using the Pooler class
|
## 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.
|
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
|
```ruby
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue