Remove empty classes that aren't really needed and just use the parent classes instead

This commit is contained in:
Joshua Harlow 2012-09-24 12:14:23 -07:00
parent 75e94a9690
commit 5ee2e23237
8 changed files with 49 additions and 192 deletions

View File

@ -1,29 +0,0 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012 Yahoo! Inc. All Rights Reserved.
#
# 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 anvil import components as comp
class CinderClientUninstaller(comp.PythonUninstallComponent):
pass
class CinderClientInstaller(comp.PythonInstallComponent):
pass
class CinderClientRuntime(comp.EmptyRuntime):
pass

View File

@ -17,10 +17,6 @@
from anvil import components as comp from anvil import components as comp
class GlanceClientUninstaller(comp.PythonUninstallComponent):
pass
class GlanceClientInstaller(comp.PythonInstallComponent): class GlanceClientInstaller(comp.PythonInstallComponent):
def _filter_pip_requires_line(self, fn, line): def _filter_pip_requires_line(self, fn, line):
if line.lower().find('keystoneclient') != -1: if line.lower().find('keystoneclient') != -1:
@ -28,10 +24,6 @@ class GlanceClientInstaller(comp.PythonInstallComponent):
return line return line
class GlanceClientRuntime(comp.EmptyRuntime):
pass
class GlanceClientTester(comp.PythonTestingComponent): class GlanceClientTester(comp.PythonTestingComponent):
def _use_run_tests(self): def _use_run_tests(self):
return False return False

View File

@ -1,29 +0,0 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012 Yahoo! Inc. All Rights Reserved.
#
# 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 anvil import components as comp
class KeyStoneClientUninstaller(comp.PythonUninstallComponent):
pass
class KeyStoneClientInstaller(comp.PythonInstallComponent):
pass
class KeyStoneClientRuntime(comp.EmptyRuntime):
pass

View File

@ -1,29 +0,0 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012 Yahoo! Inc. All Rights Reserved.
#
# 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 anvil import components as comp
class NovaClientUninstaller(comp.PythonUninstallComponent):
pass
class NovaClientInstaller(comp.PythonInstallComponent):
pass
class NovaClientRuntime(comp.EmptyRuntime):
pass

View File

@ -15,13 +15,6 @@
# under the License. # under the License.
from anvil import components as comp from anvil import components as comp
from anvil import log as logging
LOG = logging.getLogger(__name__)
class OpenStackClientUninstaller(comp.PythonUninstallComponent):
pass
class OpenStackClientInstaller(comp.PythonInstallComponent): class OpenStackClientInstaller(comp.PythonInstallComponent):
@ -35,10 +28,6 @@ class OpenStackClientInstaller(comp.PythonInstallComponent):
return line return line
class OpenStackClientRuntime(comp.EmptyRuntime):
pass
class OpenStackClientTester(comp.PythonTestingComponent): class OpenStackClientTester(comp.PythonTestingComponent):
def _use_run_tests(self): def _use_run_tests(self):
return False return False

View File

@ -1,29 +0,0 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012 Yahoo! Inc. All Rights Reserved.
#
# 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 anvil import components as comp
class QuantumClientUninstaller(comp.PythonUninstallComponent):
pass
class QuantumClientInstaller(comp.PythonInstallComponent):
pass
class QuantumClientRuntime(comp.EmptyRuntime):
pass

View File

@ -17,16 +17,8 @@
from anvil import components as comp from anvil import components as comp
class SwiftClientUninstaller(comp.PythonUninstallComponent):
pass
class SwiftClientInstaller(comp.PythonInstallComponent): class SwiftClientInstaller(comp.PythonInstallComponent):
def _filter_pip_requires_line(self, fn, line): def _filter_pip_requires_line(self, fn, line):
if line.lower().find('keystoneclient') != -1: if line.lower().find('keystoneclient') != -1:
return None return None
return line return line
class SwiftClientRuntime(comp.EmptyRuntime):
pass

View File

@ -50,28 +50,28 @@ commands:
components: components:
cinder-client: cinder-client:
action_classes: action_classes:
install: anvil.components.cinder_client:CinderClientInstaller install: anvil.components:PythonInstallComponent
running: anvil.components.cinder_client:CinderClientRuntime
uninstall: anvil.components.cinder_client:CinderClientUninstaller
test: anvil.components:PythonTestingComponent
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components:PythonTestingComponent
uninstall: anvil.components:PythonUninstallComponent
db: db:
action_classes: action_classes:
install: anvil.distros.rhel:DBInstaller install: anvil.distros.rhel:DBInstaller
running: anvil.components.db:DBRuntime
uninstall: anvil.components.db:DBUninstaller
test: anvil.components:EmptyTestingComponent
package: anvil.packaging.rpm:DependencyPackager package: anvil.packaging.rpm:DependencyPackager
running: anvil.components.db:DBRuntime
test: anvil.components:EmptyTestingComponent
uninstall: anvil.components.db:DBUninstaller
packages: packages:
- name: mysql - name: mysql
- name: mysql-server - name: mysql-server
general: general:
action_classes: action_classes:
install: anvil.components.pkglist:Installer install: anvil.components.pkglist:Installer
running: anvil.components:EmptyRuntime
uninstall: anvil.components.pkglist:Uninstaller
test: anvil.components:EmptyTestingComponent
package: anvil.packaging.rpm:DependencyPackager package: anvil.packaging.rpm:DependencyPackager
running: anvil.components:EmptyRuntime
test: anvil.components:EmptyTestingComponent
uninstall: anvil.components.pkglist:Uninstaller
packages: packages:
# Shared system packages # Shared system packages
- name: coreutils - name: coreutils
@ -249,10 +249,10 @@ components:
glance: glance:
action_classes: action_classes:
install: anvil.components.glance:GlanceInstaller install: anvil.components.glance:GlanceInstaller
running: anvil.components.glance:GlanceRuntime
uninstall: anvil.components.glance:GlanceUninstaller
test: anvil.components.glance:GlanceTester
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components.glance:GlanceRuntime
test: anvil.components.glance:GlanceTester
uninstall: anvil.components.glance:GlanceUninstaller
# When parsing 'tools/pip-requires' and # When parsing 'tools/pip-requires' and
# 'tools/test-requires' (if they exist) # 'tools/test-requires' (if they exist)
# the following map will be used to translate names # the following map will be used to translate names
@ -278,10 +278,10 @@ components:
glance-client: glance-client:
action_classes: action_classes:
install: anvil.components.glance_client:GlanceClientInstaller install: anvil.components.glance_client:GlanceClientInstaller
running: anvil.components.glance_client:GlanceClientRuntime
uninstall: anvil.components.glance_client:GlanceClientUninstaller
test: anvil.components.glance_client:GlanceClientTester
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components.glance_client:GlanceClientTester
uninstall: anvil.components:PythonUninstallComponent
pips: pips:
- name: nosexcover - name: nosexcover
- name: setuptools-git - name: setuptools-git
@ -290,10 +290,10 @@ components:
horizon: horizon:
action_classes: action_classes:
install: anvil.distros.rhel:HorizonInstaller install: anvil.distros.rhel:HorizonInstaller
running: anvil.components.horizon:HorizonRuntime
uninstall: anvil.components.horizon:HorizonUninstaller
test: anvil.components:PythonTestingComponent
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components.horizon:HorizonRuntime
test: anvil.components:PythonTestingComponent
uninstall: anvil.components.horizon:HorizonUninstaller
pip_to_package: pip_to_package:
- name: pytz - name: pytz
package: package:
@ -315,10 +315,10 @@ components:
keystone: keystone:
action_classes: action_classes:
install: anvil.components.keystone:KeystoneInstaller install: anvil.components.keystone:KeystoneInstaller
running: anvil.components.keystone:KeystoneRuntime
uninstall: anvil.components.keystone:KeystoneUninstaller
test: anvil.components.keystone:KeystoneTester
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components.keystone:KeystoneRuntime
test: anvil.components.keystone:KeystoneTester
uninstall: anvil.components.keystone:KeystoneUninstaller
packages: packages:
- name: MySQL-python - name: MySQL-python
pip_to_package: pip_to_package:
@ -332,18 +332,18 @@ components:
- name: webtest # This version in package form conflicts with webob1.0 - name: webtest # This version in package form conflicts with webob1.0
keystone-client: keystone-client:
action_classes: action_classes:
install: anvil.components.keystone_client:KeyStoneClientInstaller install: anvil.components:PythonInstallComponent
running: anvil.components.keystone_client:KeyStoneClientRuntime
uninstall: anvil.components.keystone_client:KeyStoneClientUninstaller
test: anvil.components:PythonTestingComponent
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components:PythonTestingComponent
uninstall: anvil.components:PythonUninstallComponent
nova: nova:
action_classes: action_classes:
install: anvil.distros.rhel:NovaInstaller install: anvil.distros.rhel:NovaInstaller
running: anvil.components.nova:NovaRuntime
uninstall: anvil.components.nova:NovaUninstaller
test: anvil.components.nova:NovaTester
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components.nova:NovaRuntime
test: anvil.components.nova:NovaTester
uninstall: anvil.components.nova:NovaUninstaller
packages: packages:
- name: MySQL-python - name: MySQL-python
- name: dnsmasq - name: dnsmasq
@ -415,27 +415,27 @@ components:
removable: false removable: false
nova-client: nova-client:
action_classes: action_classes:
install: anvil.components.nova_client:NovaClientInstaller install: anvil.components:PythonInstallComponent
running: anvil.components.nova_client:NovaClientRuntime
uninstall: anvil.components.nova_client:NovaClientUninstaller
test: anvil.components:PythonTestingComponent
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components:PythonTestingComponent
uninstall: anvil.components:PythonUninstallComponent
no-vnc: no-vnc:
action_classes: action_classes:
install: anvil.components.novnc:NoVNCInstaller install: anvil.components.novnc:NoVNCInstaller
running: anvil.components.novnc:NoVNCRuntime
uninstall: anvil.components.novnc:NoVNCUninstaller
test: anvil.components:EmptyTestingComponent
package: anvil.components:EmptyPackagingComponent package: anvil.components:EmptyPackagingComponent
running: anvil.components.novnc:NoVNCRuntime
test: anvil.components:EmptyTestingComponent
uninstall: anvil.components.novnc:NoVNCUninstaller
packages: packages:
- name: python-websockify - name: python-websockify
openstack-client: openstack-client:
action_classes: action_classes:
install: anvil.components.openstack_client:OpenStackClientInstaller install: anvil.components.openstack_client:OpenStackClientInstaller
running: anvil.components.openstack_client:OpenStackClientRuntime
uninstall: anvil.components.openstack_client:OpenStackClientUninstaller
test: anvil.components.openstack_client:OpenStackClientTester
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components.openstack_client:OpenStackClientTester
uninstall: anvil.components:PythonUninstallComponent
pips: pips:
- name: cliff - name: cliff
pip_to_package: pip_to_package:
@ -444,21 +444,21 @@ components:
name: python-keyring name: python-keyring
quantum-client: quantum-client:
action_classes: action_classes:
install: anvil.components.quantum_client:QuantumClientInstaller install: anvil.components:PythonInstallComponent
running: anvil.components.quantum_client:QuantumClientRuntime
uninstall: anvil.components.quantum_client:QuantumClientUninstaller
test: anvil.components:PythonTestingComponent
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components:PythonTestingComponent
uninstall: anvil.components:PythonUninstallComponent
pips: pips:
- name: cliff - name: cliff
- name: cliff-tablib - name: cliff-tablib
rabbit-mq: rabbit-mq:
action_classes: action_classes:
install: anvil.components.rabbit:RabbitInstaller install: anvil.components.rabbit:RabbitInstaller
running: anvil.distros.rhel:RabbitRuntime
uninstall: anvil.components.rabbit:RabbitUninstaller
test: anvil.components:EmptyTestingComponent
package: anvil.packaging.rpm:DependencyPackager package: anvil.packaging.rpm:DependencyPackager
running: anvil.distros.rhel:RabbitRuntime
test: anvil.components:EmptyTestingComponent
uninstall: anvil.components.rabbit:RabbitUninstaller
packages: packages:
- name: rabbitmq-server - name: rabbitmq-server
pre-install: pre-install:
@ -477,9 +477,9 @@ components:
swift-client: swift-client:
action_classes: action_classes:
install: anvil.components.swift_client:SwiftClientInstaller install: anvil.components.swift_client:SwiftClientInstaller
running: anvil.components.swift_client:SwiftClientRuntime
uninstall: anvil.components.swift_client:SwiftClientUninstaller
test: anvil.components:PythonTestingComponent
package: anvil.packaging.rpm:PythonPackager package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components:PythonTestingComponent
uninstall: anvil.components:PythonUninstallComponent
... ...