class Bosh::Common::Version::BoshVersion

Public Class Methods

parse(version) click to toggle source
# File lib/common/version/bosh_version.rb, line 7
def self.parse(version)
  raise ArgumentError, 'Invalid Version: nil' if version.nil?
  version = version.to_s

  #discard anything after a space, including the space, to support compound bosh versions
  version = version.split(' ', 2)[0] if version =~ / /

  self.new(SemiSemantic::Version.parse(version))
end

Private Instance Methods

default_post_release_segment() click to toggle source
# File lib/common/version/bosh_version.rb, line 19
def default_post_release_segment
  raise NotImplementedError, 'Bosh post-release versions unsupported'
end