Package pulp :: Package client :: Module repolib :: Class UpdateAction
[hide private]
[frames] | no frames]

Class UpdateAction

source code

Action --+
         |
        UpdateAction

Update the yum repositores based on pulp bindings (subscription).

Instance Methods [hide private]
int
perform(self)
Perform the action.
source code
[Repo,...]
getUniqueContent(self)
Get the unique content sets from pulp.
source code
[Repo,...]
getContent(self, product, baseurl)
Get Repo object(s) for a given subscription.
source code
str
join(self, base, url)
Join the base and url.
source code
    Inherited from Action
 
__init__(self) source code
Method Details [hide private]

perform(self)

source code 

Perform the action.

  • Get the content set(s) from pulp.
  • Merge with yum .repo file.
  • Write the merged .repo file.
Returns: int
The number of updates performed.

getUniqueContent(self)

source code 

Get the unique content sets from pulp.

Returns: [Repo,...]
A unique set Repo objects reported by pulp.

getContent(self, product, baseurl)

source code 

Get Repo object(s) for a given subscription.

Parameters:
  • product (dict) - A product (contains content sets).
  • baseurl (str) - The yum base url to be joined with relative url.
Returns: [Repo,...]
A list of Repo objects for the specified product.

join(self, base, url)

source code 

Join the base and url.

Parameters:
  • base (str) - The URL base (protocol, host & port).
  • url (str) - The relative url.
Returns: str
The complete (joined) url.