Sha256: 7953ba5c3bb6046d79c884420192e229211c6046ad6b4dfc5c3b920bd8aa279e

Contents?: true

Size: 455 Bytes

Versions: 93

Compression:

Stored size: 455 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
        nvrea
      end

      def nvrea
        "#{@name}-#{@version}-#{@release}.#{@arch}"
      end
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
katello-3.15.0.rc1.1 app/services/katello/pulp/simple_package.rb
katello-3.15.0.rc1 app/services/katello/pulp/simple_package.rb
katello-3.14.1 app/services/katello/pulp/simple_package.rb
katello-3.13.4 app/services/katello/pulp/simple_package.rb
katello-3.14.0 app/services/katello/pulp/simple_package.rb
katello-3.13.3 app/services/katello/pulp/simple_package.rb
katello-3.14.0.rc2 app/services/katello/pulp/simple_package.rb
katello-3.13.2 app/services/katello/pulp/simple_package.rb
katello-3.14.0.rc1 app/services/katello/pulp/simple_package.rb
katello-3.13.1 app/services/katello/pulp/simple_package.rb
katello-3.13.0 app/services/katello/pulp/simple_package.rb
katello-3.13.0.rc2.1 app/services/katello/pulp/simple_package.rb
katello-3.13.0.rc2 app/services/katello/pulp/simple_package.rb
katello-3.12.3 app/services/katello/pulp/simple_package.rb
katello-3.12.2 app/services/katello/pulp/simple_package.rb
katello-3.13.0.rc1 app/services/katello/pulp/simple_package.rb
katello-3.12.1 app/services/katello/pulp/simple_package.rb
katello-3.11.2 app/services/katello/pulp/simple_package.rb
katello-3.10.2 app/services/katello/pulp/simple_package.rb
katello-3.12.0 app/services/katello/pulp/simple_package.rb