diff options
| author | Pavel Raiskup <praiskup@redhat.com> | 2014-10-22 08:54:05 +0200 |
|---|---|---|
| committer | Pavel Raiskup <praiskup@redhat.com> | 2014-10-22 08:54:05 +0200 |
| commit | 2422a081a5be0d5ac5afb122361bc283da67341f (patch) | |
| tree | cb255582060af6547dd9318c56ba0e8c761846a1 /parse_credsfile | |
| parent | 922089746e1029de9be986672fcdeb6bc82e18d7 (diff) | |
big reorg: prepare for generalization
Try to split into three separate components -> controller, tester,
and 'tasks' (postgresql-tasks in our case). The controller
component is the main part which is able to run the task remotely.
Tester is more-like library for 'tasks' component (should be
reusable on the raw git level).
* controller: Almost separated component.
* postgresql-tasks: Likewise.
* tester: Likewise.
Diffstat (limited to 'parse_credsfile')
| -rw-r--r-- | parse_credsfile | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/parse_credsfile b/parse_credsfile deleted file mode 100644 index df2a6bf..0000000 --- a/parse_credsfile +++ /dev/null @@ -1,14 +0,0 @@ -credsfile="private/os/$1.yml" - -while read line; do - if [[ "$line" =~ ^([a-zA-Z0-9_]*):\ ?(.*)$ ]]; then - key="${BASH_REMATCH[1]}" - if test "$key" = os_nova_password; then - key=os_password - fi - eval set ${BASH_REMATCH[2]} - eval export "${key^^}"="\"$@\"" - fi -done < "$credsfile" - -# vi: syntax=sh |
