Sha256: dd562c0106d20a3384def76e877d5cd093fe25388bcd4d88d71d217657632e89

Contents?: true

Size: 386 Bytes

Versions: 9

Compression:

Stored size: 386 Bytes

Contents

module Katello
  class Glue::Pulp::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 nvrea
      "#{@name}-#{@version}-#{@release}.#{@arch}"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.4 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.3 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.2 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.1 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.0 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.0.rc3 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.0.rc2 app/models/katello/glue/pulp/simple_package.rb
katello-2.4.0.rc1 app/models/katello/glue/pulp/simple_package.rb