Class: Y2Packager::LicensesHandlers::Tarball

Inherits:
Base
  • Object
show all
Defined in:
library/packages/src/lib/y2packager/licenses_handlers/tarball.rb

Overview

This class is responsible for interacting with an rpm in order to get/set the license acceptance status for a given product

Instance Attribute Summary

Attributes inherited from Base

#product_name

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Y2Packager::LicensesHandlers::Base

Instance Method Details

#confirmation=(confirmed) ⇒ Object

Set the license confirmation for the product

Parameters:

  • confirmed (Boolean)

    true if it should be accepted; false otherwise


26
27
28
29
30
31
32
# File 'library/packages/src/lib/y2packager/licenses_handlers/tarball.rb', line 26

def confirmation=(confirmed)
  if confirmed
    log.info("License was accepted")
  else
    log.info("License was not accepted")
  end
end