class VagrantPlugins::DigitalOcean::Commands::Rebuild
Public Class Methods
Source
# 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
Show description when ‘vagrant list-commands` is triggered
Public Instance Methods
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