aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-10-09 15:57:12 +0200
committervarac <varacanero@zeromail.org>2013-10-09 15:57:12 +0200
commit90bf49387b3a1e3f5a8cc873e19f0e740a401e27 (patch)
treeab750806be0243bd5f1b94c522410bcc6f80df5e
parent475ea8cf7b0895285611cfa28eeb1afa6e3fc5b1 (diff)
downloadleap_cli-90bf49387b3a1e3f5a8cc873e19f0e740a401e27.tar.gz
leap_cli-90bf49387b3a1e3f5a8cc873e19f0e740a401e27.tar.bz2
fix def vagrant_version for vagrant >= v1.3
vagrant reports it's version differently >= v1.3 before: Vagrant version 1.2.2 now: Vagrant 1.3.4
-rw-r--r--lib/leap_cli/commands/vagrant.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb
index e674c75..5248bfd 100644
--- a/lib/leap_cli/commands/vagrant.rb
+++ b/lib/leap_cli/commands/vagrant.rb
@@ -130,7 +130,7 @@ module LeapCli; module Commands
end
def vagrant_version
- minor_version = `vagrant --version|cut -d' ' -f 3 | cut -d'.' -f 2`.to_i
+ minor_version = `vagrant --version | rev | cut -d'.' -f 2`.to_i
version = case minor_version
when 1..9 then 2
when 0 then 1