Make us client library independent for server side operations

Change-Id: Ib881a57a2c1ff856d011e0dc832cedd6281fd3e3
This commit is contained in:
Endre Karlson 2012-11-20 09:44:26 +01:00
parent e0eeba656b
commit 016a629e12
6 changed files with 51 additions and 4 deletions

21
bin/moniker-manage Normal file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env python
# Copyright 2012 Bouvet ASA
#
# Author: Endre Karlson <endre.karlson@bouvet.no>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import sys
from moniker.manage import MonikerShell
shell = MonikerShell()
sys.exit(shell.run(sys.argv[1:]))

View File

@ -0,0 +1,26 @@
# Copyright 2012 Managed I.T.
#
# Author: Kiall Mac Innes <kiall@managedit.ie>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from cliff.app import App
from cliff.commandmanager import CommandManager
class MonikerShell(App):
def __init__(self):
super(MonikerShell, self).__init__(
description='Moniker Server Side Management CLI',
version='0.1',
command_manager=CommandManager('moniker.manage')
)

View File

@ -52,6 +52,7 @@ setup(
'bin/moniker-central',
'bin/moniker-api',
'bin/moniker-agent',
'bin/moniker-manage'
],
cmdclass=common_setup.get_cmdclass(),
entry_points=textwrap.dedent("""
@ -69,9 +70,9 @@ setup(
bind9 = moniker.backend.impl_bind9:Bind9Backend
fake = moniker.backend.impl_fake:FakeBackend
[moniker.cli]
database init = moniker.cli.database:InitCommand
database sync = moniker.cli.database:SyncCommand
[moniker.manage]
database init = moniker.manage.database:InitCommand
database sync = moniker.manage.database:SyncCommand
"""),
classifiers=[
'Development Status :: 3 - Alpha',

View File

@ -3,7 +3,6 @@ eventlet
jsonschema>=0.6
ipaddr
PasteDeploy
https://github.com/stackforge/python-monikerclient/tarball/master#egg=python-monikerclient
stevedore
# From OpenStack Common