Merge branch 'master' of git.covalent.cz:overwatch/over

This commit is contained in:
Martinez 2015-06-09 09:48:59 +02:00
commit ba1034bf22
17 changed files with 60 additions and 14 deletions

0
.over_inhibit_deployment Normal file
View file

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import time import time

2
aux.py
View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import sys import sys

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
from . import app from . import app

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import os import os

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import sys import sys

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import queue import queue
@ -66,6 +66,7 @@ class Command:
self.__dict__['thread'] = None self.__dict__['thread'] = None
self.__dict__['fifo'] = None self.__dict__['fifo'] = None
self.__dict__['terminated'] = False self.__dict__['terminated'] = False
self.__dict__['returncode'] = None
def dump(self, sequence=None, pretty=False): def dump(self, sequence=None, pretty=False):
out = [] out = []

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import os import os

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import copy import copy

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
# -------------------------------------------------- # --------------------------------------------------

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import math import math

14
deploy-template.sh Executable file
View file

@ -0,0 +1,14 @@
#! /bin/zsh
# encoding: utf-8
if [[ -a ".over_inhibit_deployment" ]]; then
echo '!! deployment inhibited by lock file (hint: run this from the target directory, not the over directory)'
elif [[ -n "$1" ]]; then
OVER_DIR="$(readlink -f "$(dirname "$0")")"
ln -s "$OVER_DIR"
cp "$OVER_DIR/template.py" "$1"
chmod +x "$1"
echo "over" >> .gitignore
else
echo '!! Missing argument (program name).'
fi

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
# #
# Part of Project Overwatch # Part of Project Overwatch

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
''' '''

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
import time import time

31
template.py Normal file
View file

@ -0,0 +1,31 @@
#! /usr/bin/env python3
# encoding: utf-8
# library imports
import over
# local imports
#import version
# --------------------------------------------------
# Exceptions
class ConfigurationError(Exception):
pass
# --------------------------------------------------
# Functions
# --------------------------------------------------
# Classes
# --------------------------------------------------
if __name__ == '__main__':
main = over.core.app.Main('short-name', 'Human Readable Name', version.str, 'LICENSE', use_cfg_file=False)
main.add_option('option', 'type', 'default', 'Description.', short_name='s')
main.add_help('Description', ['What it does.'])
main.enable_help('h')
main.parse()
...

View file

@ -1,4 +1,4 @@
#! /bin/env python3 #! /usr/bin/env python3
# encoding: utf-8 # encoding: utf-8
_version = (0, '00000000') # OVER_VERSION_IDENTIFIER _version = (0, '00000000') # OVER_VERSION_IDENTIFIER