diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-05-21 14:38:57 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-16 19:48:17 +0200 |
commit | 1fc7b0485833d525be6114bf2178bd9efd04f371 (patch) | |
tree | 4c45a5eb1d3dad8b3e4565ee8b42fa8e5d3ac320 | |
parent | 4de9c5fc51c1e9a07a23b430ba531eb096960732 (diff) | |
download | freeipa-1fc7b0485833d525be6114bf2178bd9efd04f371.tar.gz freeipa-1fc7b0485833d525be6114bf2178bd9efd04f371.tar.xz freeipa-1fc7b0485833d525be6114bf2178bd9efd04f371.zip |
ipaplatform: Create separate module for platform files
https://fedorahosted.org/freeipa/ticket/4052
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
-rw-r--r-- | ipaplatform/__init__.py | 22 | ||||
-rw-r--r-- | ipaplatform/base/__init__.py | 23 | ||||
-rw-r--r-- | ipaplatform/base/paths.py | 22 | ||||
-rw-r--r-- | ipaplatform/base/services.py | 23 | ||||
-rw-r--r-- | ipaplatform/base/tasks.py | 22 |
5 files changed, 112 insertions, 0 deletions
diff --git a/ipaplatform/__init__.py b/ipaplatform/__init__.py new file mode 100644 index 000000000..cf342aa3f --- /dev/null +++ b/ipaplatform/__init__.py @@ -0,0 +1,22 @@ +# Authors: +# Tomas Babej <tbabej@redhat.com> +# +# 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 <http://www.gnu.org/licenses/>. + +''' +Module containing platform-specific functionality for every platform. +''' 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 <tbabej@redhat.com> +# +# 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 <http://www.gnu.org/licenses/>. + +''' +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 <tbabej@redhat.com> +# +# 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 <http://www.gnu.org/licenses/>. + +''' +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 <tbabej@redhat.com> +# +# 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 <http://www.gnu.org/licenses/>. +# + +''' +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 <tbabej@redhat.com> +# +# 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 <http://www.gnu.org/licenses/>. + +''' +This module contains default platform-specific implementations of system tasks. +''' |