Sha256: 7ce22659eabf28079580fc3d1f72fed71a32b4e0a16d6af4bfbb1b01ed7ecbf6
Contents?: true
Size: 588 Bytes
Versions: 104
Compression:
Stored size: 588 Bytes
Contents
module Katello module Pulp class SimplePackage # {"epoch", "name", "arch", "version", "vendor", "release"} attr_accessor :vendor, :arch, :epoch, :version, :release, :name def initialize(params = {}) params.each_pair { |k, v| instance_variable_set("@#{k}", v) unless v.nil? } end def nvra "#{@name}-#{@version}-#{@release}.#{@arch}" end def nvrea if epoch.nil? || epoch.to_s == "0" nvra else "#{@name}-#{@epoch}:#{@version}-#{@release}.#{@arch}" end end end end end
Version data entries
104 entries across 104 versions & 1 rubygems