tools/repa.git
10 years agoImplemented config file processing
Ed Bartosh [Sun, 11 Aug 2013 15:17:34 +0000 (18:17 +0300)]
Implemented config file processing

Configuration is taken from /etc/repa.conf and ~/.repa.conf, so it's
possible to specify system defaults in /etc/repa.conf and user-related
configuration options in ~/.repa.conf. ~/.repa.conf has higher priority
and any option from /etc/repa.conf can be reset in ~/.repa.conf

Configuration processing is implemented in a way that default values for
command line parameters are taken from configuration file(s).

Configuration section to use can be specified in command line too.

Fixes: #1141

Change-Id: I632f22674c282021983bc6a496ef1fccc0da3137
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5839
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
10 years agoAdded namespace package example
Ed Bartosh [Sat, 10 Aug 2013 18:55:03 +0000 (21:55 +0300)]
Added namespace package example

Example shows how to implement namespace repa package. Namespace
packages are used to distribute extra functionality separately from
repa, but within repa namespace. External modules implemented this way
can be imported this way 'from repa import module'.

Change-Id: I79da170c4ba2562c7a022428c556ba06f2519e49
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5837
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
10 years agoAdded plugin example
Ed Bartosh [Sat, 10 Aug 2013 18:25:25 +0000 (21:25 +0300)]
Added plugin example

Example shows how to implement 3rd party repa plugins

Change-Id: I0bfc523a87d867e7d8564e00ef317d1ac824b9f2
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5836
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
10 years agoImplemented main module and plugin system
Ed Bartosh [Sat, 10 Aug 2013 16:34:14 +0000 (19:34 +0300)]
Implemented main module and plugin system

2 empty command modules are included: list and group. Their
implementation will be added soon. At the moment they're just printing
messages to the console.

Main module looks for subcommands using setup.py entry point group
'repa_commands'. This allows to develop and distribute extra repa
commands independently.

Change-Id: I599a040f33d137909539020027a6a35a341ea35c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5834
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
10 years agoPackaged for rpm
Ed Bartosh [Sat, 10 Aug 2013 12:47:25 +0000 (15:47 +0300)]
Packaged for rpm

Created empty rpm package. At the moment only README file is included.
It's a base for further development.

This change integrates this project into OTC Tools continuous
integration system, which builds and installs every change, sent for
review to Gerrit.

Fixes: #1140

Change-Id: Ie9875b42c5a0dad85a72a2e0c2772c5070935878
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5833
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
10 years agoInit
Ed Bartosh [Fri, 9 Aug 2013 16:03:15 +0000 (19:03 +0300)]
Init

Change-Id: Ic32024510cd3d36f4cbbc39c5f46547a903690bf
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>