Class: Pandler::Yumfile
- Inherits:
-
Object
- Object
- Pandler::Yumfile
- Defined in:
- lib/pandler/yumfile.rb
Instance Attribute Summary collapse
-
#repos ⇒ Object
readonly
Returns the value of attribute repos.
-
#rpms ⇒ Object
readonly
Returns the value of attribute rpms.
Instance Method Summary collapse
-
#initialize(filename) ⇒ Yumfile
constructor
A new instance of Yumfile.
Constructor Details
#initialize(filename) ⇒ Yumfile
Returns a new instance of Yumfile.
4 5 6 7 8 |
# File 'lib/pandler/yumfile.rb', line 4 def initialize(filename) @repos = {} @rpms = [] load_file(filename) if File.exists? filename end |
Instance Attribute Details
#repos ⇒ Object (readonly)
Returns the value of attribute repos.
2 3 4 |
# File 'lib/pandler/yumfile.rb', line 2 def repos @repos end |
#rpms ⇒ Object (readonly)
Returns the value of attribute rpms.
2 3 4 |
# File 'lib/pandler/yumfile.rb', line 2 def rpms @rpms end |