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

Version Path
katello-4.14.2 app/services/katello/simple_package.rb
katello-4.15.0 app/services/katello/simple_package.rb
katello-4.15.0.rc2 app/services/katello/simple_package.rb
katello-4.15.0.rc1 app/services/katello/simple_package.rb
katello-4.14.1 app/services/katello/simple_package.rb
katello-4.14.0 app/services/katello/simple_package.rb
katello-4.14.0.rc3 app/services/katello/simple_package.rb
katello-4.14.0.rc2 app/services/katello/simple_package.rb
katello-4.14.0.rc1.1 app/services/katello/simple_package.rb
katello-4.14.0.rc1 app/services/katello/simple_package.rb
katello-4.13.1 app/services/katello/simple_package.rb
katello-4.13.0 app/services/katello/simple_package.rb
katello-4.12.1 app/services/katello/simple_package.rb
katello-4.13.0.rc1 app/services/katello/simple_package.rb
katello-4.12.0 app/services/katello/simple_package.rb
katello-4.12.0.rc3 app/services/katello/simple_package.rb
katello-4.12.0.rc2 app/services/katello/simple_package.rb
katello-4.12.0.rc1 app/services/katello/simple_package.rb
katello-4.11.1 app/services/katello/simple_package.rb
katello-4.11.0 app/services/katello/simple_package.rb