Skip to content

Commit

Permalink
rename neutron to tacker
Browse files Browse the repository at this point in the history
Change-Id: I89e4126cdddcf91c6b375b898c06773941db2a9c
  • Loading branch information
yamahata committed Jul 4, 2014
1 parent 14eeda8 commit ffa7a58
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 166 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[run]
branch = True
source = neutronclient
omit = neutronclient/openstack/*,neutronclient/tests/*
source = tackerclient
omit = tackerclient/openstack/*,tackerclient/tests/*

[report]
ignore-errors = True
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ build-stamp
cover/*
doc/build/
doc/source/api/
python_neutronclient.egg-info/*
neutron/vcsversion.py
neutronclient/versioninfo
python_tackerclient.egg-info/*
tacker/vcsversion.py
tackerclient/versioninfo
run_tests.err.log
run_tests.log
.autogenerated
Expand Down
2 changes: 1 addition & 1 deletion .gitreview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/python-neutronclient.git
project=openstack/python-tackerclient.git
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This is the client API library for Neutron.
This is the client API library for Tacker.
128 changes: 0 additions & 128 deletions neutron_test.sh

This file was deleted.

2 changes: 1 addition & 1 deletion openstack-common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
modules=gettextutils,jsonutils,strutils,timeutils

# The base module to hold the copy of openstack.common
base=neutronclient
base=tackerclient
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = python-neutronclient
name = python-tackerclient
summary = CLI and Client Library for OpenStack Networking
description-file =
README.rst
Expand All @@ -20,15 +20,15 @@ classifier =

[files]
packages =
neutronclient
tackerclient

[global]
setup-hooks =
pbr.hooks.setup_hook

[entry_points]
console_scripts =
neutron = neutronclient.shell:main
tacker = tackerclient.shell:main

[build_sphinx]
all_files = 1
Expand Down
20 changes: 20 additions & 0 deletions tacker_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -x
function die() {
local exitcode=$?
set +o xtrace
echo $@
exit $exitcode
}

noauth_tenant_id=me
if [ $1 == 'noauth' ]; then
NOAUTH="--tenant_id $noauth_tenant_id"
else
NOAUTH=
fi

FORMAT=" --request-format xml"

# test the CRUD of xxx
# TODO(yamahata)
27 changes: 0 additions & 27 deletions tools/neutron.bash_completion

This file was deleted.

27 changes: 27 additions & 0 deletions tools/tacker.bash_completion
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
_tacker_opts="" # lazy init
_tacker_flags="" # lazy init
_tacker_opts_exp="" # lazy init
_tacker()
{
local cur prev nbc cflags
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"

if [ "x$_tacker_opts" == "x" ] ; then
nbc="`tacker bash-completion`"
_tacker_opts="`echo "$nbc" | sed -e "s/--[a-z0-9_-]*//g" -e "s/\s\s*/ /g"`"
_tacker_flags="`echo " $nbc" | sed -e "s/ [^-][^-][a-z0-9_-]*//g" -e "s/\s\s*/ /g"`"
_tacker_opts_exp="`echo "$_tacker_opts" | sed -e "s/\s/|/g"`"
fi

if [[ " ${COMP_WORDS[@]} " =~ " "($_tacker_opts_exp)" " && "$prev" != "help" ]] ; then
COMPLETION_CACHE=~/.tackerclient/*/*-cache
cflags="$_tacker_flags "$(cat $COMPLETION_CACHE 2> /dev/null | tr '\n' ' ')
COMPREPLY=($(compgen -W "${cflags}" -- ${cur}))
else
COMPREPLY=($(compgen -W "${_tacker_opts}" -- ${cur}))
fi
return 0
}
complete -F _tacker tacker

0 comments on commit ffa7a58

Please sign in to comment.