Class: Katello::Pulp::SimplePackage

Inherits:
Object
  • Object
show all
Defined in:
app/services/katello/pulp/simple_package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ SimplePackage

Returns a new instance of SimplePackage.



7
8
9
# File 'app/services/katello/pulp/simple_package.rb', line 7

def initialize(params = {})
  params.each_pair { |k, v| instance_variable_set("@#{k}", v) unless v.nil? }
end

Instance Attribute Details

#archObject

“name”, “arch”, “version”, “vendor”, “release”



5
6
7
# File 'app/services/katello/pulp/simple_package.rb', line 5

def arch
  @arch
end

#epochObject

“name”, “arch”, “version”, “vendor”, “release”



5
6
7
# File 'app/services/katello/pulp/simple_package.rb', line 5

def epoch
  @epoch
end

#nameObject

“name”, “arch”, “version”, “vendor”, “release”



5
6
7
# File 'app/services/katello/pulp/simple_package.rb', line 5

def name
  @name
end

#releaseObject

“name”, “arch”, “version”, “vendor”, “release”



5
6
7
# File 'app/services/katello/pulp/simple_package.rb', line 5

def release
  @release
end

#vendorObject

“name”, “arch”, “version”, “vendor”, “release”



5
6
7
# File 'app/services/katello/pulp/simple_package.rb', line 5

def vendor
  @vendor
end

#versionObject

“name”, “arch”, “version”, “vendor”, “release”



5
6
7
# File 'app/services/katello/pulp/simple_package.rb', line 5

def version
  @version
end

Instance Method Details

#nvraObject



11
12
13
# File 'app/services/katello/pulp/simple_package.rb', line 11

def nvra
  nvrea
end

#nvreaObject



15
16
17
# File 'app/services/katello/pulp/simple_package.rb', line 15

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