Class: ReaperMan::PackageList::Processor

Inherits:
Object
  • Object
show all
Includes:
Utils::Checksum, Utils::Process
Defined in:
lib/reaper-man/package_list.rb,
lib/reaper-man/package_list/deb.rb,
lib/reaper-man/package_list/gem.rb,
lib/reaper-man/package_list/rpm.rb

Overview

Package list modification processor

Direct Known Subclasses

Deb, Gem, Rpm

Defined Under Namespace

Classes: Deb, Gem, Rpm

Instance Method Summary collapse

Methods included from Utils::Checksum

#checksum

Methods included from Utils::Process

#child_process_command, #mixlib_shellout_command, #shellout

Constructor Details

#initialize(_ = {}) ⇒ Processor

Returns a new instance of Processor.



16
17
# File 'lib/reaper-man/package_list.rb', line 16

def initialize(_ = {})
end

Instance Method Details

#add(conf, package) ⇒ Object

Add a package to the list

Parameters:

  • conf (Hash)
  • package (String)

    path to package



23
24
25
# File 'lib/reaper-man/package_list.rb', line 23

def add(conf, package)
  raise NoMethodError.new "Not implemented"
end

#remove(conf, package_name, version = nil) ⇒ Object

Remove package from the list

Parameters:

  • conf (Hash)

    configuration hash

  • package_name (String)

    name

  • version (String) (defaults to: nil)


32
33
34
# File 'lib/reaper-man/package_list.rb', line 32

def remove(conf, package_name, version = nil)
  raise NoMethodError.new "Not implemented"
end