Class: Y2Packager::ProductLocation

Inherits:
Object
  • Object
show all
Defined in:
src/lib/y2packager/product_location.rb

Overview

This class represents a product located on a multi-repository medium, libzypp reads the available products from /medium.1/products file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, dir) ⇒ ProductLocation

Constructor

Parameters:

  • name (String)

    Product name

  • dir (String)

    Location (path starting at the media root)


26
27
28
29
# File 'src/lib/y2packager/product_location.rb', line 26

def initialize(name, dir)
  @name = name
  @dir = dir
end

Instance Attribute Details

#dirString (readonly)

Returns User selected products

Returns:

  • (String)

    User selected products


20
21
22
# File 'src/lib/y2packager/product_location.rb', line 20

def dir
  @dir
end

#nameString (readonly)

Returns Products on the medium

Returns:

  • (String)

    Products on the medium


18
19
20
# File 'src/lib/y2packager/product_location.rb', line 18

def name
  @name
end