I would rather have the code in the VagrantFile so I do not have to 
duplicate across shell files.

On Friday, August 15, 2014 7:21:20 PM UTC-4, Alvaro Miranda Aguilera wrote:
>
> can those messages in case of errors be on the script?
>
>
>
> On Sat, Aug 16, 2014 at 8:26 AM, Harish Patel <[email protected] 
> <javascript:>> wrote:
>
>> Tried something like before but the 'puts' statement is only run at the 
>> very beggining of 'vagrant up', not when the actual provisioner is run.  In 
>> this case, I want to print a message so the user knows that the shell file 
>> failed.
>>
>> config.vm.provision "shell" do |s|
>>     begin
>>       s.path = "#{SCRIPTS}/#{CONFIGURE_SETTINGS}"
>>       s.args = "#{USER} #{PW}"
>>     rescue
>>       puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!AN ERROR 
>> REACHED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
>>     end
>>   end
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to