From 199a14b61ffd11350bffee40b204a9e3eb560b73 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Thu, 17 Oct 2013 13:56:27 -0300 Subject: [PATCH] Let users know we were not able to SSH into the VM to remove symlinks --- lib/vagrant-cachier/action/clean.rb | 3 ++- locales/en.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/vagrant-cachier/action/clean.rb b/lib/vagrant-cachier/action/clean.rb index e25d64f..9b7bf25 100644 --- a/lib/vagrant-cachier/action/clean.rb +++ b/lib/vagrant-cachier/action/clean.rb @@ -10,6 +10,7 @@ module VagrantPlugins end def call(env) + @env = env @machine = env[:machine] if should_remove_symlinks? @@ -43,7 +44,7 @@ module VagrantPlugins end end rescue Timeout::Error - # We timed out, we failed. + @env[:ui].warn(I18n.t('vagrant_cachier.unable_to_ssh')) end return false diff --git a/locales/en.yml b/locales/en.yml index b54004d..b8147ad 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -11,6 +11,8 @@ en: '%{current_path}' and it will be moved to '%{new_path}' as it is the new path for keeping machine scoped cache dirs starting with the 0.3.0 version of the plugin. + unable_to_ssh: |- + vagrant-cachier was unable to SSH into the VM to remove symlinks! vagrant: errors: multiple_provider_specific_cache_dirs_found: |-