Sha256: fcd309126bc0bcad69856bf46060a16a0b99a69dda6c3c7f29321bd547ac1c78

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 Bytes

Contents

module Vagrant
  module Backports
    class << self
      def vagrant_1_2_or_later?
        greater_than?('1.2.0')
      end

      def vagrant_1_3_or_later?
        greater_than?('1.3.0')
      end

      def vagrant_1_4_or_later?
        greater_than?('1.4.0')
      end

      def vagrant_1_5_or_later?
        greater_than?('1.5.0')
      end

      private

      def greater_than?(version)
        Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new(version)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-lxc-1.0.1 lib/vagrant-backports/utils.rb
vagrant-lxc-1.0.0 lib/vagrant-backports/utils.rb
vagrant-lxc-1.0.0.alpha.3 lib/vagrant-backports/utils.rb
vagrant-lxc-1.0.0.alpha.2 lib/vagrant-backports/utils.rb
vagrant-lxc-1.0.0.alpha.1 lib/vagrant-backports/utils.rb