lib/vocker/docker_installer.rb in vocker-0.3.3 vs lib/vocker/docker_installer.rb in vocker-0.4.0

- old
+ new

@@ -1,12 +1,13 @@ require_relative "errors" module VagrantPlugins module Vocker class DockerInstaller - def initialize(machine) + def initialize(machine, version) @machine = machine + @version = version end # This handles verifying the Docker installation, installing it if it was # requested, and so on. This method will raise exceptions if things are # wrong. @@ -16,10 +17,10 @@ return end if !@machine.guest.capability(:docker_installed) @machine.ui.info(I18n.t("vagrant.docker_installing")) - @machine.guest.capability(:docker_install) + @machine.guest.capability(:docker_install, @version) if !@machine.guest.capability(:docker_installed) raise Errors::DockerInstallFailed end end