Sha256: 0581ad54e345ee165a900a9af826faba13ab5411017502a1dadce4c8f19c92d6

Contents?: true

Size: 729 Bytes

Versions: 10

Compression:

Stored size: 729 Bytes

Contents

module Vagrant
  class Commands
    # Reload the environment. This is almost equivalent to the {up} command
    # except that it doesn't import the VM and do the initialize bootstrapping
    # of the instance. Instead, it forces a shutdown (if its running) of the
    # VM, updates the metadata (shared folders, forwarded ports), restarts
    # the VM, and then reruns the provisioning if enabled.
    class Reload < Base
      Base.subcommand "reload", self
      description "Reload the vagrant environment"

      def execute(args=[])
        env.require_persisted_vm
        env.vm.execute!(Actions::VM::Reload)
      end

      def options_spec(opts)
        opts.banner = "Usage: vagrant reload"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrantup-0.3.4 lib/vagrant/commands/reload.rb
vagrantup-0.3.3 lib/vagrant/commands/reload.rb
vagrantup-0.3.2 lib/vagrant/commands/reload.rb
vagrantup-0.3.1 lib/vagrant/commands/reload.rb
vagrantup-0.3.0 lib/vagrant/commands/reload.rb
vagrant-0.3.4 lib/vagrant/commands/reload.rb
vagrant-0.3.3 lib/vagrant/commands/reload.rb
vagrant-0.3.2 lib/vagrant/commands/reload.rb
vagrant-0.3.1 lib/vagrant/commands/reload.rb
vagrant-0.3.0 lib/vagrant/commands/reload.rb