diff options
author | varac <varacanero@zeromail.org> | 2013-10-09 15:57:12 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-10-09 15:57:12 +0200 |
commit | 90bf49387b3a1e3f5a8cc873e19f0e740a401e27 (patch) | |
tree | ab750806be0243bd5f1b94c522410bcc6f80df5e | |
parent | 475ea8cf7b0895285611cfa28eeb1afa6e3fc5b1 (diff) | |
download | leap_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.rb | 2 |
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 |