Class: VagrantPlugins::DigitalOcean::Commands::Rebuild

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-digitalocean/commands/rebuild.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/vagrant-digitalocean/commands/rebuild.rb', line 7

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