Class: Rupert::RPM::Header
- Inherits:
-
Object
- Object
- Rupert::RPM::Header
- Defined in:
- lib/rupert/rpm/header.rb
Constant Summary collapse
- NAME_TAG =
1000.freeze
- SIZE_TAG =
1009.freeze
- DIRINDEXES_TAG =
1116.freeze
- BASENAMES_TAG =
1117.freeze
- DIRNAMES_TAG =
1118.freeze
Instance Method Summary collapse
-
#basenames ⇒ Array
Package files basename list.
-
#dirindexes ⇒ Array
Map between basenames and relative directories.
-
#dirnames ⇒ Array
Installed directory list.
-
#initialize(index) ⇒ Header
constructor
Creates a new header.
-
#name ⇒ String
Package name.
-
#uncompressed_size ⇒ Fixnum
Package uncompressed size (bytes).
Constructor Details
#initialize(index) ⇒ Header
Creates a new header.
14 15 16 |
# File 'lib/rupert/rpm/header.rb', line 14 def initialize(index) @index = index end |
Instance Method Details
#basenames ⇒ Array
Package files basename list.
35 36 37 |
# File 'lib/rupert/rpm/header.rb', line 35 def basenames @index.get(BASENAMES_TAG) end |
#dirindexes ⇒ Array
Map between basenames and relative directories.
the dirnames
array
50 51 52 |
# File 'lib/rupert/rpm/header.rb', line 50 def dirindexes @index.get(DIRINDEXES_TAG) end |
#dirnames ⇒ Array
Installed directory list.
42 43 44 |
# File 'lib/rupert/rpm/header.rb', line 42 def dirnames @index.get(DIRNAMES_TAG) end |
#name ⇒ String
Package name.
21 22 23 |
# File 'lib/rupert/rpm/header.rb', line 21 def name @index.get(NAME_TAG) end |
#uncompressed_size ⇒ Fixnum
Package uncompressed size (bytes).
28 29 30 |
# File 'lib/rupert/rpm/header.rb', line 28 def uncompressed_size @index.get(SIZE_TAG) end |