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

Version Path
katello-4.7.6 app/services/katello/pulp/simple_package.rb
katello-4.7.5 app/services/katello/pulp/simple_package.rb
katello-4.7.4 app/services/katello/pulp/simple_package.rb
katello-4.7.3 app/services/katello/pulp/simple_package.rb
katello-4.7.2 app/services/katello/pulp/simple_package.rb
katello-4.7.1 app/services/katello/pulp/simple_package.rb
katello-4.6.2.1 app/services/katello/pulp/simple_package.rb
katello-4.6.2 app/services/katello/pulp/simple_package.rb
katello-4.7.0 app/services/katello/pulp/simple_package.rb
katello-4.6.1 app/services/katello/pulp/simple_package.rb
katello-4.7.0.rc2 app/services/katello/pulp/simple_package.rb
katello-4.7.0.rc1 app/services/katello/pulp/simple_package.rb
katello-4.4.2.2 app/services/katello/pulp/simple_package.rb
katello-4.4.2.1 app/services/katello/pulp/simple_package.rb
katello-4.4.2 app/services/katello/pulp/simple_package.rb
katello-4.5.1 app/services/katello/pulp/simple_package.rb
katello-4.6.0 app/services/katello/pulp/simple_package.rb
katello-4.6.0.rc2 app/services/katello/pulp/simple_package.rb
katello-4.6.0.rc1 app/services/katello/pulp/simple_package.rb
katello-4.5.0 app/services/katello/pulp/simple_package.rb