example config done
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import jinja2
|
||||
import os
|
||||
import shutil
|
||||
|
||||
2
bdisk/GIT.py
Normal file
2
bdisk/GIT.py
Normal file
@@ -0,0 +1,2 @@
|
||||
import git
|
||||
import os
|
||||
@@ -0,0 +1 @@
|
||||
import gpg
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
import OpenSSL
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import os
|
||||
import psutil
|
||||
import subprocess
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import validators
|
||||
from urllib.parse import urlparse
|
||||
try:
|
||||
from lxml import etree
|
||||
has_lxml = True
|
||||
except ImportError:
|
||||
import xml.etree.ElementTree as etree
|
||||
has_lxml = False
|
||||
|
||||
"""Read a configuration file, parse it, and make it available to the rest of
|
||||
BDisk."""
|
||||
|
||||
class Conf(object):
|
||||
def __init__(self, cfg, profile = None, id_type = 'name'):
|
||||
"""Conf classes accept the following parameters:
|
||||
cfg - The configuration. Can be a filesystem path, a string, bytes,
|
||||
or a stream
|
||||
|
||||
profile (optional) - A sub-profile in the configuration. If None is
|
||||
provided, we'll first look for a profile named
|
||||
'default'. If one isn't found, then the first
|
||||
profile found will be used
|
||||
id_type (optional) - The type of identifer to use for profile=.
|
||||
Valid values are:
|
||||
|
||||
id
|
||||
name
|
||||
uuid"""
|
||||
pass
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import copy
|
||||
import importlib
|
||||
import os
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
import GIT
|
||||
|
||||
1
bdisk/logger.py
Normal file
1
bdisk/logger.py
Normal file
@@ -0,0 +1 @@
|
||||
import logging
|
||||
@@ -1,4 +1,15 @@
|
||||
#!/usr/bin/env python3.6
|
||||
|
||||
def main():
|
||||
import argparse
|
||||
|
||||
"""The primary user interface for BDisk. If we are running interactively,
|
||||
parse arguments first, then initiate a BDisk session."""
|
||||
|
||||
def parseArgs():
|
||||
pass
|
||||
|
||||
def run():
|
||||
pass
|
||||
|
||||
def run_interactive():
|
||||
pass
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
Reference in New Issue
Block a user