Sha256: 1187ad311318fbcc484d3987273c15d0ea5d88532abf7078eb6ffb337dbb9af7
Contents?: true
Size: 534 Bytes
Versions: 37
Compression:
Stored size: 534 Bytes
Contents
module Katello 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
Version data entries
37 entries across 37 versions & 1 rubygems