reorganized tasks to subdirs like services

This commit is contained in:
Johannes Findeisen 2013-11-09 04:08:03 +01:00
commit 51f9c2d6d1
12 changed files with 7 additions and 41 deletions

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,35 @@
"""
The MariaDB task
Copyright (c) 2011-2013 by Johannes Findeisen and Rafael Timmerberg
This file is part of Linspector (http://linspector.org).
Linspector is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from logging import getLogger
from linspector.tasks.task import Task
logger = getLogger(__name__)
class MariadbTask(Task):
def __init__(self, **kwargs):
pass
def create(kwargs):
return MariadbTask(**kwargs)

View file

@ -0,0 +1,35 @@
"""
The MongoDB task
Copyright (c) 2011-2013 by Johannes Findeisen and Rafael Timmerberg
This file is part of Linspector (http://linspector.org).
Linspector is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from logging import getLogger
from linspector.tasks.task import Task
logger = getLogger(__name__)
class MongodbTask(Task):
def __init__(self, **kwargs):
pass
def create(kwargs):
return MongodbTask(**kwargs)