rbackup/doc/build/html/rbackup.package_managers.html

242 lines
11 KiB
HTML
Raw Normal View History

2019-04-14 22:19:34 -07:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>rbackup.package_managers package &#8212; rbackup 0.3.1 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="rbackup.struct package" href="rbackup.struct.html" />
<link rel="prev" title="rbackup package" href="rbackup.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
</head><body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="rbackup-package-managers-package">
<h1>rbackup.package_managers package<a class="headerlink" href="#rbackup-package-managers-package" title="Permalink to this headline"></a></h1>
<div class="section" id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</div>
<div class="section" id="module-rbackup.package_managers.packagemanager">
<span id="rbackup-package-managers-packagemanager-module"></span><h2>rbackup.package_managers.packagemanager module<a class="headerlink" href="#module-rbackup.package_managers.packagemanager" title="Permalink to this headline"></a></h2>
<span class="target" id="module-rbackup.package_managers.packagemanager"></span><dl class="class">
<dt id="rbackup.package_managers.packagemanager.PackageManager">
<em class="property">class </em><code class="descclassname">rbackup.package_managers.packagemanager.</code><code class="descname">PackageManager</code><span class="sig-paren">(</span><em>cachedir</em>, <em>db_path</em>, <em>pkglist_cmd</em><span class="sig-paren">)</span><a class="headerlink" href="#rbackup.package_managers.packagemanager.PackageManager" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<dl class="attribute">
<dt id="rbackup.package_managers.packagemanager.PackageManager.cache_directory">
<code class="descname">cache_directory</code><a class="headerlink" href="#rbackup.package_managers.packagemanager.PackageManager.cache_directory" title="Permalink to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>the cache directory of this package manager.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>path-like object</p>
</dd>
</dl>
</dd></dl>
<dl class="attribute">
<dt id="rbackup.package_managers.packagemanager.PackageManager.database_path">
<code class="descname">database_path</code><a class="headerlink" href="#rbackup.package_managers.packagemanager.PackageManager.database_path" title="Permalink to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>the database path of this package manager.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>path-like object</p>
</dd>
</dl>
</dd></dl>
<dl class="method">
<dt id="rbackup.package_managers.packagemanager.PackageManager.gen_db_archive">
<code class="descname">gen_db_archive</code><span class="sig-paren">(</span><em>compress=None</em><span class="sig-paren">)</span><a class="headerlink" href="#rbackup.package_managers.packagemanager.PackageManager.gen_db_archive" title="Permalink to this definition"></a></dt>
<dd><p>Generate a database archive for this package manager.</p>
<blockquote>
<div><p>All arguments and keyword-only arguments are passed directly
to the PackageManager object.</p>
</div></blockquote>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>This method is internal and is meant to be called from
a subclass in a separate module.</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>compress</strong> (<em>str</em>) compression mode</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the path to the created file</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>path-like object</p>
</dd>
<dt class="field-even">Raises</dt>
<dd class="field-even"><p><strong>ValueError</strong> if compress is not in packagemanager.VALID_DB_COMPRESS_MODES</p>
</dd>
</dl>
</dd></dl>
<dl class="method">
<dt id="rbackup.package_managers.packagemanager.PackageManager.gen_pkglist">
<code class="descname">gen_pkglist</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#rbackup.package_managers.packagemanager.PackageManager.gen_pkglist" title="Permalink to this definition"></a></dt>
<dd><p>Generate a text file listing installed packages
on the system and return the path to that file.</p>
<blockquote>
<div><p>If there is an error in the package listing command, then
it is to be assumed that no file was created, therefore there
is no file to cleanup.</p>
</div></blockquote>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>This method is internal and is meant to be called from
a subclass in a separate module.</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>path to temporary file</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>path-like object</p>
</dd>
</dl>
</dd></dl>
<dl class="attribute">
<dt id="rbackup.package_managers.packagemanager.PackageManager.pkglist_cmd">
<code class="descname">pkglist_cmd</code><a class="headerlink" href="#rbackup.package_managers.packagemanager.PackageManager.pkglist_cmd" title="Permalink to this definition"></a></dt>
<dd><dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>the package listing command of this package manager.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>iterable or str</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="module-rbackup.package_managers.pacman">
<span id="rbackup-package-managers-pacman-module"></span><h2>rbackup.package_managers.pacman module<a class="headerlink" href="#module-rbackup.package_managers.pacman" title="Permalink to this headline"></a></h2>
<span class="target" id="module-rbackup.package_managers.pacman"></span><dl class="class">
<dt id="rbackup.package_managers.pacman.Pacman">
<em class="property">class </em><code class="descclassname">rbackup.package_managers.pacman.</code><code class="descname">Pacman</code><a class="headerlink" href="#rbackup.package_managers.pacman.Pacman" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#rbackup.package_managers.packagemanager.PackageManager" title="rbackup.package_managers.packagemanager.PackageManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">rbackup.package_managers.packagemanager.PackageManager</span></code></a></p>
</dd></dl>
</div>
<div class="section" id="module-rbackup.package_managers">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-rbackup.package_managers" title="Permalink to this headline"></a></h2>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="index.html">rbackup</a></h1>
<h3>Navigation</h3>
<p class="caption"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="rbackup.html">rbackup package</a><ul class="current">
<li class="toctree-l2 current"><a class="reference internal" href="rbackup.html#subpackages">Subpackages</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbackup.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbackup.html#module-rbackup.config">rbackup.config module</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbackup.html#module-rbackup.rsync">rbackup.rsync module</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbackup.html#module-rbackup">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">rbackup.package_managers package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-rbackup.package_managers.packagemanager">rbackup.package_managers.packagemanager module</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-rbackup.package_managers.pacman">rbackup.package_managers.pacman module</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-rbackup.package_managers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="rbackup.struct.html">rbackup.struct package</a></li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="index.html">Documentation overview</a><ul>
<li><a href="rbackup.html">rbackup package</a><ul>
<li>Previous: <a href="rbackup.html" title="previous chapter">rbackup package</a></li>
<li>Next: <a href="rbackup.struct.html" title="next chapter">rbackup.struct package</a></li>
</ul></li>
</ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
&copy;2019, Eric Torres.
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.0.1</a>
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
|
<a href="_sources/rbackup.package_managers.rst.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>