-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aweber/publicize
Publicize
- Loading branch information
Showing
17 changed files
with
260 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,3 @@ dist/ | |
.coverage | ||
*.sublime-project | ||
*.sublime-workspace | ||
LOCAL-VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Copyright (c) 2016 AWeber Communications | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
* Neither the name of Bandoleers nor the names of its contributors may be used | ||
to endorse or promote products derived from this software without specific | ||
prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | ||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
include LOCAL-VERSION | ||
graft docs | ||
graft requires |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version_info = (0, 3, 5) | ||
version_info = (0, 4, 0) | ||
__version__ = '.'.join(str(s) for s in version_info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Environment Variables | ||
===================== | ||
|
||
.. envvar:: CASSANDRA_URI | ||
|
||
Identifies a Cassandra cluster to connect to. The general form is:: | ||
|
||
cassandra://HOST:PORT?property=value&property=value | ||
|
||
The ``HOST`` portion is the DNS name or IP address of the Cassandra | ||
server. It is used as the ``contact_points`` parameter in the | ||
:class:`cassandra.cluster.Cluster` initializer. If it resolves to | ||
multiple addresses, then the entire list is passed to the initializer. | ||
If the ``PORT`` is omitted, then it defaults to 9042. The optional | ||
"query string" contains properties that are passed to the initializer | ||
as keyword parameters. | ||
|
||
.. envvar:: CONSUL_HOST | ||
|
||
Identifies the IP address or DNS name of the Consul server. | ||
|
||
.. envvar:: CONSUL_PORT | ||
|
||
Identifies the TCP port number that the Consul server is listening on. | ||
|
||
.. envvar:: RABBITMQ | ||
|
||
The network location portion for the RabbitMQ HTTP API. This is | ||
inserted directly into a HTTP URL. | ||
|
||
.. envvar:: REDIS_URI | ||
|
||
Identifies the redis server, port, and database to connect to. This | ||
value follows the IANA-registered `redis url`_ format. | ||
|
||
|
||
.. envvar:: PGSQL | ||
|
||
Identifies the PostgreSQL server to connect to using the standard | ||
`postgresql:// scheme`_ | ||
|
||
|
||
.. _postgresql:// scheme: http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING | ||
.. _redis url: https://www.iana.org/assignments/uri-schemes/prov/redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
prep-it | ||
======= | ||
.. program:: prep-it | ||
|
||
The :program:`prep-it` utility scans the *platform* sub-directory and | ||
loads data files into various backends. The following sections describe | ||
each directory name that is supported and its expected content. | ||
|
||
cassandra | ||
--------- | ||
Text files containing queries that are executed using a | ||
:class:`cassandra.cluster.Cluster` instance. Queries are separated by | ||
semi-colons and executed in the order that they appear in the file. The | ||
Cassandra server is configured by setting the :envvar:`CASSANDRA_URI` | ||
environment variable. | ||
|
||
consul | ||
------ | ||
JSON files containing top-level object definitions (e.g., dictionaries) | ||
that are loaded into a Consul key-value store using a :class:`consulate.Consul` | ||
instance. The Consul endpoint is configured by setting the | ||
:envvar:`CONSUL_HOST` and :envvar:`CONSUL_PORT` environment variables. | ||
|
||
rabbitmq | ||
-------- | ||
JSON files that contain RabbitMQ HTTP API commands to execute. Each | ||
command is represented by an object with the following properties: | ||
|
||
:path: | ||
The resource to send the request to. | ||
|
||
:method: | ||
The HTTP method to invoke (e.g., ``POST``, ``DELETE``) | ||
|
||
:body: | ||
The body to send with the request. | ||
|
||
The RabbitMQ server is identified by setting the :envvar:`RABBITMQ` | ||
environment variable to the host and port of the HTTP API endpoint. | ||
|
||
redis | ||
----- | ||
JSON files each containing a top-level object definition where each | ||
property names a redis command. The property value is another object | ||
definition where the name is the redis key and the value is a list of | ||
values to pass to the command. | ||
|
||
For example, the following JSON file would result in calling the | ||
``SADD`` redis command to add ``"abuse"``, ``"admin"``, ``"postmaster"``, | ||
and ``"root"`` to the ``admin_type_address`` redis set. | ||
|
||
.. code-block:: javascript | ||
{ | ||
"SADD": { | ||
"admin_type_address": [ | ||
"abuse", | ||
"admin", | ||
"postmaster", | ||
"root" | ||
] | ||
} | ||
} | ||
The redis server is configured by setting the :envvar:`REDIS_URI` | ||
environment variable to a `redis url`_. | ||
|
||
.. _redis url: https://www.iana.org/assignments/uri-schemes/prov/redis | ||
|
||
postgres | ||
-------- | ||
SQL files that are executed using `queries`_. The database server is | ||
configured by setting the :envvar:`PGSQL` environment variable. The | ||
database name is based on the file name minus the assumed ``.sql`` | ||
suffix. The database will be dropped if it exists and then created | ||
anew before running the SQL commands from the file. | ||
|
||
.. _queries: https://github.com/gmr/queries |
Oops, something went wrong.