Sha256: 934916b82db2672f2760f2567d6e8e5d387c4fefd952150a638e37e19e7b5e8a

Contents?: true

Size: 710 Bytes

Versions: 54

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

module VagrantPlugins
  module ProviderZone
    module Command
      # This is used to restart the guest from inside the guest
      class RestartGuest < Vagrant.plugin('2', :command)
        def execute
          opts = OptionParser.new do |o|
            o.banner = 'Usage: vagrant zone control restart [options]'
          end

          argv = parse_options(opts)
          return unless argv

          unless argv.empty?
            @env.ui.info(opts.help)
            return
          end

          ## Wait for VM up
          with_target_vms(argv, provider: :zone) do |machine|
            machine.action('restart')
          end
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
vagrant-zones-0.1.55 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.54 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.52 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.48 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.46 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.44 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.12 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.10 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.9 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.8 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.41 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.1.3 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.0.12 lib/vagrant-zones/command/restart_guest.rb
vagrant-zones-0.0.1 lib/vagrant-zones/command/restart_guest.rb