From 1fc7b0485833d525be6114bf2178bd9efd04f371 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 21 May 2014 14:38:57 +0200 Subject: ipaplatform: Create separate module for platform files https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin --- ipaplatform/base/__init__.py | 23 +++++++++++++++++++++++ ipaplatform/base/paths.py | 22 ++++++++++++++++++++++ ipaplatform/base/services.py | 23 +++++++++++++++++++++++ ipaplatform/base/tasks.py | 22 ++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 ipaplatform/base/__init__.py create mode 100644 ipaplatform/base/paths.py create mode 100644 ipaplatform/base/services.py create mode 100644 ipaplatform/base/tasks.py (limited to 'ipaplatform/base') diff --git a/ipaplatform/base/__init__.py b/ipaplatform/base/__init__.py new file mode 100644 index 000000000..346467a10 --- /dev/null +++ b/ipaplatform/base/__init__.py @@ -0,0 +1,23 @@ +# Authors: +# Tomas Babej +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +''' +This module should contain generic default implementations and definitions +of all the objects that a platform module is expected to export. +''' diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py new file mode 100644 index 000000000..46021e59c --- /dev/null +++ b/ipaplatform/base/paths.py @@ -0,0 +1,22 @@ +# Authors: +# Tomas Babej +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +''' +This base platform module exports default filesystem paths. +''' diff --git a/ipaplatform/base/services.py b/ipaplatform/base/services.py new file mode 100644 index 000000000..bff0f272e --- /dev/null +++ b/ipaplatform/base/services.py @@ -0,0 +1,23 @@ +# Author: Tomas Babej +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +''' +This base module contains default implementations of IPA interface for +interacting with system services. +''' diff --git a/ipaplatform/base/tasks.py b/ipaplatform/base/tasks.py new file mode 100644 index 000000000..c0f112673 --- /dev/null +++ b/ipaplatform/base/tasks.py @@ -0,0 +1,22 @@ +# Authors: +# Tomas Babej +# +# Copyright (C) 2014 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +''' +This module contains default platform-specific implementations of system tasks. +''' -- cgit