~james-page/charm-helpers/misc-https-fixes

« back to all changes in this revision

Viewing changes to docs/api/charmhelpers.contrib.snap.rst

  • Committer: Joseph Borg
  • Date: 2017-02-28 12:00:55 UTC
  • mto: This revision was merged to the branch mainline in revision 704.
  • Revision ID: joseph.borg@canonical.com-20170228120055-67urhfvqx7mx1iup
A few updates before landing:
Removing fixed options for snap_install.
Adding snap_refresh.
Updating docs to include examples.
Finishing tests using mock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    :members:
6
6
    :undoc-members:
7
7
    :show-inheritance:
 
8
 
 
9
Examples
 
10
--------
 
11
 
 
12
.. code-block:: python
 
13
 
 
14
    snap_install('hello-world', '--classic', '--stable')
 
15
    snap_install(['hello-world', 'htop'])
 
16
 
 
17
.. code-block:: python
 
18
 
 
19
    snap_refresh('hello-world', '--classic', '--stable')
 
20
    snap_refresh(['hello-world', 'htop'])
 
21
 
 
22
.. code-block:: python
 
23
 
 
24
    snap_remove('hello-world')
 
25
    snap_remove(['hello-world', 'htop'])
 
26