lib/vagrant/actions/vm/up.rb in vagrantup-0.3.4 vs lib/vagrant/actions/vm/up.rb in vagrantup-0.4.0
- old
+ new
@@ -8,26 +8,25 @@
raise ActionException.new(:dotfile_error, :env => @runner.env)
end
# Up is a "meta-action" so it really just queues up a bunch
# of other actions in its place:
- steps = [Import, Customize, ForwardPorts, SharedFolders, Boot]
- steps << Provision if !@runner.env.config.vm.provisioner.nil?
+ steps = [Import, Start]
steps.insert(0, MoveHardDrive) if @runner.env.config.vm.hd_location
steps.each do |action_klass|
- @runner.add_action(action_klass)
+ @runner.add_action(action_klass, options)
end
end
def after_import
- persist
+ update_dotfile
setup_mac_address
end
- def persist
+ def update_dotfile
logger.info "Persisting the VM UUID (#{@runner.uuid})..."
- @runner.env.persist_vm
+ @runner.env.update_dotfile
end
def setup_mac_address
logger.info "Matching MAC addresses..."
@runner.vm.network_adapters.first.mac_address = @runner.env.config.vm.base_mac