Commit 842e6bf93bf7cc0bfc7ec478d02617100f57aa7a
1 parent
29741a7e
Exists in
sei-v3.0.0-oracle-dockerimages
and in
3 other branches
Validação de instalação de plugin de atualização do VBGuest-Additions (Vagrant-vbguest)
Showing
2 changed files
with
12 additions
and
4 deletions
Show diff stats
Vagrantfile
| 1 | 1 | # -*- mode: ruby -*- |
| 2 | 2 | # vi: set ft=ruby : |
| 3 | + | |
| 4 | +#unless Vagrant.has_plugin?("vagrant-vbguest") | |
| 5 | +# raise "\n\nAmbiente de desenvolvimento não pode ser criado não foi encontrado o plugin vagrant-vbguest.\n"+ | |
| 6 | +# "Para solucionar o problema, execute o seguinte comando no diretório raiz do projeto.\n\n"+ | |
| 7 | +# "> vagrant plugin install vagrant-vbguest \n\n" | |
| 8 | +#end | |
| 3 | 9 | |
| 4 | 10 | # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! |
| 5 | 11 | VAGRANTFILE_API_VERSION = "2" | ... | ... |
Vagrantfile_Distrib
| 1 | 1 | # -*- mode: ruby -*- |
| 2 | 2 | # vi: set ft=ruby : |
| 3 | 3 | |
| 4 | -# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| 5 | -# configures the configuration version (we support older styles for | |
| 6 | -# backwards compatibility). Please don't change it unless you know what | |
| 7 | -# you're doing. | |
| 4 | +unless Vagrant.has_plugin?("vagrant-vbguest") | |
| 5 | + raise "\n\nAmbiente de desenvolvimento não pode ser criado não foi encontrado o plugin vagrant-vbguest.\n"+ | |
| 6 | + "Para solucionar o problema, execute o seguinte comando no diretório raiz do projeto.\n\n"+ | |
| 7 | + "> vagrant plugin install vagrant-vbguest \n\n" | |
| 8 | +end | |
| 9 | + | |
| 8 | 10 | Vagrant.configure(2) do |config| |
| 9 | 11 | |
| 10 | 12 | # Box do vagrant contendo o ambiente de desenvolvimento do SEI | ... | ... |