Class: DistDiff
- Inherits:
-
Object
- Object
- DistDiff
- Defined in:
- lib/dist_diff.rb
Overview
For getting the difference in package names between two Ubuntu distribution using Ubuntu manifest file
Instance Attribute Summary collapse
-
#manifest_from ⇒ Object
readonly
Returns the value of attribute manifest_from.
-
#manifest_to ⇒ Object
readonly
Returns the value of attribute manifest_to.
Instance Method Summary collapse
- #extra_packages ⇒ Object
-
#initialize(manifest_from, manifest_to) ⇒ DistDiff
constructor
A new instance of DistDiff.
- #reverse_extra_packages ⇒ Object
Constructor Details
#initialize(manifest_from, manifest_to) ⇒ DistDiff
Returns a new instance of DistDiff.
6 7 8 9 |
# File 'lib/dist_diff.rb', line 6 def initialize(manifest_from, manifest_to) @manifest_from = manifest_from @manifest_to = manifest_to end |
Instance Attribute Details
#manifest_from ⇒ Object (readonly)
Returns the value of attribute manifest_from.
4 5 6 |
# File 'lib/dist_diff.rb', line 4 def manifest_from @manifest_from end |
#manifest_to ⇒ Object (readonly)
Returns the value of attribute manifest_to.
4 5 6 |
# File 'lib/dist_diff.rb', line 4 def manifest_to @manifest_to end |
Instance Method Details
#extra_packages ⇒ Object
11 12 13 14 |
# File 'lib/dist_diff.rb', line 11 def extra_packages read_manifest_files list_diff end |
#reverse_extra_packages ⇒ Object
16 17 18 19 |
# File 'lib/dist_diff.rb', line 16 def reverse_extra_packages read_manifest_files if (to_pkgs and from_pkgs).nil? list_diff(true) end |