Sha256: eb95433abb84bebfd3d62c98bbc25279a6e0a40b4e0e5a610cc6f40c9be49369

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

require 'semantic'

module Hobo
  module Lib
    module HostCheck
      def vagrant_version
        version = shell "vagrant --version", :capture => true
        version.gsub!(/^Vagrant /, '')
        version = ::Semantic::Version.new version
        minimum_version = ::Semantic::Version.new "1.3.5"
        raise "Vagrant too old" if version < minimum_version
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hobo-inviqa-0.0.7 lib/hobo/lib/host_check/vagrant.rb
hobo-inviqa-0.0.6 lib/hobo/lib/host_check/vagrant.rb