gleam is taken, let's do glean instead

This commit is contained in:
Monty Taylor 2015-04-12 16:06:41 -04:00
parent 062393a8c0
commit b6d75277c2
12 changed files with 24 additions and 24 deletions

View File

@ -1,7 +1,7 @@
[run] [run]
branch = True branch = True
source = gleam source = glean
omit = gleam/tests/*,gleam/openstack/* omit = glean/tests/*,glean/openstack/*
[report] [report]
ignore-errors = True ignore-errors = True

View File

@ -1,4 +1,4 @@
[gerrit] [gerrit]
host=review.openstack.org host=review.openstack.org
port=29418 port=29418
project=openstack-infra/gleam.git project=openstack-infra/glean.git

View File

@ -1,4 +1,4 @@
gleam Style Commandments glean Style Commandments
======================== ========================
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/

View File

@ -1,10 +1,10 @@
===== =====
gleam glean
===== =====
Simple program to write static config from config-drive Simple program to write static config from config-drive
* Free software: Apache license * Free software: Apache license
* Documentation: http://docs.openstack.org/developer/gleam * Documentation: http://docs.openstack.org/developer/glean
* Source: http://git.openstack.org/cgit/openstack-infra/gleam * Source: http://git.openstack.org/cgit/openstack-infra/glean
* Bugs: http://storyboard.openstack.org * Bugs: http://storyboard.openstack.org

View File

@ -37,7 +37,7 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'gleam' project = u'glean'
copyright = u'2013, OpenStack Foundation' copyright = u'2013, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text. # If true, '()' will be appended to :func: etc. cross-reference text.

View File

@ -1,9 +1,9 @@
.. gleam documentation master file, created by .. glean documentation master file, created by
sphinx-quickstart on Tue Jul 9 22:26:36 2013. sphinx-quickstart on Tue Jul 9 22:26:36 2013.
You can adapt this file completely to your liking, but it should at least You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive. contain the root `toctree` directive.
Welcome to gleam's documentation! Welcome to glean's documentation!
======================================================== ========================================================
Contents: Contents:

View File

@ -4,9 +4,9 @@ Installation
At the command line:: At the command line::
$ pip install gleam $ pip install glean
Or, if you have virtualenvwrapper installed:: Or, if you have virtualenvwrapper installed::
$ mkvirtualenv gleam $ mkvirtualenv glean
$ pip install gleam $ pip install glean

View File

@ -2,6 +2,6 @@
Usage Usage
======== ========
To use gleam in a project:: To use glean in a project::
import gleam import glean

View File

@ -307,7 +307,7 @@ def write_ssh_keys(args):
current_keys = "" current_keys = ""
if not args.noop: if not args.noop:
open(authorized_keys, 'w').write( open(authorized_keys, 'w').write(
"# File created by gleam\n") "# File created by glean\n")
for (name, key) in meta_data['public_keys'].items(): for (name, key) in meta_data['public_keys'].items():
if key not in current_keys or args.noop: if key not in current_keys or args.noop:
keys_to_write.append( keys_to_write.append(

View File

@ -21,16 +21,16 @@ import mock
from oslotest import base from oslotest import base
from gleam import cmd from glean import cmd
sample_data_path = os.path.join( sample_data_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'fixtures') os.path.dirname(os.path.realpath(__file__)), 'fixtures')
class TestProcessConfigDrive(base.BaseTestCase): class TestGlean(base.BaseTestCase):
def setUp(self): def setUp(self):
super(TestProcessConfigDrive, self).setUp() super(TestGlean, self).setUp()
def _patch_argv(self, args): def _patch_argv(self, args):
self.useFixture(fixtures.MonkeyPatch('sys.argv', ['.'] + args)) self.useFixture(fixtures.MonkeyPatch('sys.argv', ['.'] + args))

View File

@ -16,16 +16,16 @@
# limitations under the License. # limitations under the License.
SAMPLE_DIR=gleam/tests/fixtures SAMPLE_DIR=glean/tests/fixtures
for vendor_dir in $(find $SAMPLE_DIR \ for vendor_dir in $(find $SAMPLE_DIR \
-maxdepth 1 -mindepth 1 -type d | grep -v test) ; do -maxdepth 1 -mindepth 1 -type d | grep -v test) ; do
vendor=$(basename $vendor_dir) vendor=$(basename $vendor_dir)
python gleam/cmd.py \ python glean/cmd.py \
-n --root $vendor_dir --skip-network --ssh \ -n --root $vendor_dir --skip-network --ssh \
> $SAMPLE_DIR/test/$vendor.keys.out > $SAMPLE_DIR/test/$vendor.keys.out
for distro in debian ubuntu redhat fedora centos ; do for distro in debian ubuntu redhat fedora centos ; do
python gleam/cmd.py \ python glean/cmd.py \
-n --root $vendor_dir --distro $distro > $SAMPLE_DIR/test/$vendor.$distro.network.out -n --root $vendor_dir --distro $distro > $SAMPLE_DIR/test/$vendor.$distro.network.out
done done
done done

View File

@ -1,5 +1,5 @@
[metadata] [metadata]
name = gleam name = glean
summary = Simple program to write static config from config-drive summary = Simple program to write static config from config-drive
description-file = description-file =
README.rst README.rst
@ -22,7 +22,7 @@ classifier =
[entry_points] [entry_points]
console_scripts = console_scripts =
gleam = gleam.cmd:main glean = glean.cmd:main
[build_sphinx] [build_sphinx]
source-dir = doc/source source-dir = doc/source