Class: Suppository::DpkgDeb

Inherits:
Object
  • Object
show all
Defined in:
lib/suppository/dpkg_deb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deb_path) ⇒ DpkgDeb

Returns a new instance of DpkgDeb.



9
10
11
12
# File 'lib/suppository/dpkg_deb.rb', line 9

def initialize(deb_path)
  command = CommandRunner.new('dpkg-deb', "-f #{deb_path}")
  @attibutes = parser(command.run)
end

Instance Attribute Details

#attibutesObject (readonly)

Returns the value of attribute attibutes.



7
8
9
# File 'lib/suppository/dpkg_deb.rb', line 7

def attibutes
  @attibutes
end