Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #49 from duggan/docs-update
Browse files Browse the repository at this point in the history
Much improved docs
  • Loading branch information
duggan committed Mar 6, 2016
2 parents 46d4d87 + 809318f commit a6691c6
Show file tree
Hide file tree
Showing 7 changed files with 548 additions and 120 deletions.
File renamed without changes.
21 changes: 6 additions & 15 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ sailing.

It is designed for human consumption, and aims to have good defaults.

It also happens to be a library.

Caveats
-------

Expand All @@ -40,26 +38,19 @@ User Guide
----------

.. toctree::
:maxdepth: 2
:maxdepth: 3

user/install
user/library
user/cli
user/basic
user/reference

API Documentation
-----------------
Developer / Contributor Guide
-----------------------------

.. toctree::
:maxdepth: 2

api

Contributor Guide
-----------------

.. toctree::
:maxdepth: 1

dev/api
dev/testing


Expand Down
77 changes: 77 additions & 0 deletions docs/user/basic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
CLI Usage
=========

Configure
---------

Set up your credentials and preferences:

::

$ pontoon configure

You'll be prompted for your Digital Ocean API credentials (`available
here <https://www.digitalocean.com/api_access>`__), and whether you want
to use existing SSH credentials or for them to be generated (using
OpenSSH).

The rest are preferences, and can be set at any time by running
configure again, editing the ``~/.pontoon`` config file (YAML format),
or by specifying them with options on the command line.

Configuration File
------------------

Here's an example of the options set in the configuration file:

::

api_token: foo-bar-baz
auth_key_name: Macbook.local
image: ubuntu-15-10-x32
region: lon1
size: 512mb
ssh_private_key: ~/.ssh/id_rsa
ssh_public_key: ~/.ssh/id_rsa.pub
username: root

Managing Droplets is probably what you'll spend most of your time doing with pontoon.

You can get a full list of subcommands and options by running:

::

$ pontoon droplet --help

Basic Usage
-----------

Creating and destroying Droplets is very straight forward:

::

$ pontoon droplet create my-droplet
Creating Droplet my-droplet (512mb using ubuntu-15-10-x32 in lon1)...
...............active
$ pontoon droplet destroy my-droplet
Destroying ud1 and scrubbing data...

To SSH into your Droplet:

::

$ pontoon droplet ssh my-droplet
Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-27-generic i686)

* Documentation: https://help.ubuntu.com/
Last login: Sun Mar 6 10:41:17 2016 from 192.168.1.200

To get a list of your Droplets:

::

$ pontoon droplet list
my-droplet: (512mb, ubuntu-15-10-x32, lon1, 104.236.32.182, active)


See the :doc:`reference` for more.
88 changes: 0 additions & 88 deletions docs/user/cli.rst

This file was deleted.

3 changes: 2 additions & 1 deletion docs/user/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Via pip:

$ pip install pontoon

Pontoon works with Pythons 2.6 through 3.5, and should work on any Linux/BSD with Python support.

More options coming.
It's also possible to use pontoon on Windows, though portions of the configuarion command (which make use of Linux CLI tools like OpenSSH) do not work.
16 changes: 0 additions & 16 deletions docs/user/library.rst

This file was deleted.

Loading

0 comments on commit a6691c6

Please sign in to comment.