VmShepherd
Gem for deploying and destroying a VM on different IAASs such as AWS, vSphere, vCloud, and Openstack
Installation
Add this line to your application's Gemfile:
gem 'vm_shepherd'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vm_shepherd
Usage
require 'vm_shepherd'
settings = # An OpenStruct with the expected IaaS specific settings.
# => See YAML under spec/fixtures/shepherd/ for expected values
# create a new VM
shep = VmShepherd::Shepherd.new(settings: settings)
shep.deploy(path: 'path/to/vm.image')
# destroy an existing VM
shep = VmShepherd::Shepherd.new(settings: settings)
shep.destroy
Contributing
- Fork it ( https://github.com/pivotal-cf-experimental/vm_shepherd/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request