class VagrantPlugins::DigitalOcean::Commands::Rebuild
Public Class Methods
synopsis()
click to toggle source
Show description when `vagrant list-commands` is triggered
# File lib/vagrant-digitalocean/commands/rebuild.rb, line 9 def self.synopsis "plugin: vagrant-digitalocean: destroys and ups the vm with the same ip address" end
Public Instance Methods
execute()
click to toggle source
# File lib/vagrant-digitalocean/commands/rebuild.rb, line 13 def execute opts = OptionParser.new do |o| o.banner = 'Usage: vagrant rebuild [vm-name]' end argv = parse_options(opts) with_target_vms(argv) do |machine| machine.action(:rebuild) end 0 end