Class: DistDiff

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_fromObject (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_toObject (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_packagesObject



11
12
13
14
# File 'lib/dist_diff.rb', line 11

def extra_packages
  read_manifest_files
  list_diff
end

#reverse_extra_packagesObject



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