Sha256: 30605e7af27604610dd5f4b57fc8818c9438ddfb7933fe0bf845b1ea0b95f5c4

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require 'optparse'

module VagrantPlugins
  module Rimu
    module Commands
      class Rebuild < Vagrant.plugin('2', :command)
        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
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-rimu-0.0.2 lib/vagrant-rimu/commands/rebuild.rb
vagrant-rimu-0.0.1 lib/vagrant-rimu/commands/rebuild.rb