Method: Package#version

Defined in:
lib/resources/package.rb

#versionObject

return the package version



60
61
62
63
64
# File 'lib/resources/package.rb', line 60

def version
  info = @pkgman.info(@package_name)
  return nil if info.nil?
  info[:version]
end