aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-08-10 21:00:49 -0400
committerDevan Franchini <twitch153@gentoo.org>2014-08-15 17:42:41 -0400
commitc3b6f7c9de1bd5723cd132e2ed66a9e8e557f22a (patch)
treeea0f12be371995c79b365e67df28ddc04466c3e3 /bin
parentMigrates run_command to utily.py (diff)
downloadlayman-c3b6f7c9de1bd5723cd132e2ed66a9e8e557f22a.tar.gz
layman-c3b6f7c9de1bd5723cd132e2ed66a9e8e557f22a.tar.bz2
layman-c3b6f7c9de1bd5723cd132e2ed66a9e8e557f22a.zip
Adds layman-mounter utility script
api.py: Adds Mounter() initialization in the LaymanAPI. constants.py: Adds MOUNT_TYPES to constants to keep track of mountable overlay classes. archive.py: Adds check to unmount overlays if they are being synced.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/layman-mounter42
1 files changed, 42 insertions, 0 deletions
diff --git a/bin/layman-mounter b/bin/layman-mounter
new file mode 100755
index 0000000..cd41078
--- /dev/null
+++ b/bin/layman-mounter
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+################################################################################
+# LAYMAN - A UTILITY TO HANDLE MOUNTING OVERLAYS
+################################################################################
+# Distributed under the terms of the GNU General Public License v2
+#
+# Copyright:
+# (c) 2014 Devan Franchini
+# Distributed under the terms of the GNU General Public License v2
+#
+# Author(s):
+# Devan Franchini <twitch153@gentoo.org>
+#
+
+__version__ = "0.1"
+
+#===============================================================================
+#
+# Dependencies
+#
+#-------------------------------------------------------------------------------
+
+from layman.api import LaymanAPI
+from layman.config import OptionConfig
+from layman.mounter import Interactive
+
+#===============================================================================
+#
+# MAIN
+#
+#-------------------------------------------------------------------------------
+
+config = OptionConfig()
+layman_api = LaymanAPI(config,
+ report_errors=True,
+ output=config['output'])
+
+main = Interactive(config=config, mounter=config['mounts'])
+main()
+