Sha256: cf6ffe5688f1ad24ab5eb6765e05e8b2ca802089fd8f45378654d72d834856af

Contents?: true

Size: 462 Bytes

Versions: 7

Compression:

Stored size: 462 Bytes

Contents

module Veewee
  module Provider
    module Virtualbox
      module BoxCommand

        # Return the major/minor/incremental version of VirtualBox.
        # For example: 4.1.8_Debianr75467 -> 4.1.8
        def vbox_version
          command="#{@vboxcmd} --version"
          shell_results=shell_exec("#{command}",{:mute => true})
          version=shell_results.stdout.strip.split(/[^0-9\.]/)[0]
          return version
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
veewee-0.3.0.beta2 lib/veewee/provider/virtualbox/box/helper/version.rb
veewee-0.3.0.beta1 lib/veewee/provider/virtualbox/box/helper/version.rb
veewee-0.3.0.alpha9 lib/veewee/provider/virtualbox/box/helper/version.rb
veewee-0.3.0.alpha8 lib/veewee/provider/virtualbox/box/helper/version.rb
veewee-0.3.0.alpha7 lib/veewee/provider/virtualbox/box/helper/version.rb
veewee-0.3.0.alpha6 lib/veewee/provider/virtualbox/box/helper/version.rb
veewee-0.3.0.alpha5 lib/veewee/provider/virtualbox/box/helper/version.rb