alpha_omega 1.5.10 → 1.5.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/VERSION +1 -1
  2. data/libexec/_jason +1 -0
  3. data/libexec/_sub +8 -2
  4. data/libexec/aoh +1 -1
  5. data/libexec/aoh-activate +1 -1
  6. data/libexec/aoh-check +1 -1
  7. data/libexec/aoh-compare +1 -1
  8. data/libexec/aoh-debug +1 -1
  9. data/libexec/aoh-deploy +1 -1
  10. data/libexec/aoh-dist +1 -1
  11. data/libexec/aoh-dna +1 -1
  12. data/libexec/aoh-hosts +1 -1
  13. data/libexec/aoh-init +1 -1
  14. data/libexec/aoh-lock +1 -1
  15. data/libexec/aoh-migrate +1 -1
  16. data/libexec/aoh-proxy +1 -1
  17. data/libexec/aoh-release +1 -1
  18. data/libexec/aoh-remote +1 -1
  19. data/libexec/aoh-restart +1 -1
  20. data/libexec/aoh-rollback +1 -1
  21. data/libexec/aoh-shell +1 -1
  22. data/libexec/aoh-signoff +1 -1
  23. data/libexec/aoh-stage +1 -1
  24. data/libexec/aoh-stub +1 -1
  25. data/libexec/aoh-task +1 -1
  26. data/libexec/aoh-unlock +1 -1
  27. data/libexec/aohelper +2 -1
  28. data/libexec/aohelper.template +1 -0
  29. data/libexec/build +1 -1
  30. data/libexec/build-gem +1 -1
  31. data/libexec/bump +1 -1
  32. data/libexec/edit +1 -1
  33. data/libexec/edit-gem +1 -1
  34. data/libexec/local-helper +1 -1
  35. data/libexec/publish +1 -1
  36. data/libexec/publish-gem +1 -1
  37. data/libexec/remote-helper +2 -0
  38. data/sbin/activate +1 -1
  39. data/sbin/check +1 -1
  40. data/sbin/compare +1 -1
  41. data/sbin/debug +1 -1
  42. data/sbin/deploy +1 -1
  43. data/sbin/dist +1 -1
  44. data/sbin/dna +1 -1
  45. data/sbin/hosts +1 -1
  46. data/sbin/local-helper +1 -1
  47. data/sbin/lock +1 -1
  48. data/sbin/migrate +1 -1
  49. data/sbin/proxy +1 -1
  50. data/sbin/release +1 -1
  51. data/sbin/remote +1 -1
  52. data/sbin/restart +1 -1
  53. data/sbin/rollback +1 -1
  54. data/sbin/shell +1 -1
  55. data/sbin/signoff +1 -1
  56. data/sbin/stage +1 -1
  57. data/sbin/task +1 -1
  58. data/sbin/unlock +1 -1
  59. metadata +1 -8
  60. data/libexec/_meat +0 -164
  61. data/libexec/_prime +0 -8
  62. data/libexec/_shunit +0 -1048
  63. data/libexec/_treadstone +0 -12
  64. data/libexec/_versions +0 -174
  65. data/libexec/stub +0 -15
  66. data/libexec/stub-prepare +0 -34
data/libexec/_meat DELETED
@@ -1,164 +0,0 @@
1
- #!/bin/bash
2
-
3
- : ${__meat__:=x}
4
- if [[ "$__meat__" != 'x' ]]; then
5
- return 0
6
- fi
7
- __meat__='y'
8
-
9
- if [[ -z "${shome:-}" ]]; then
10
- shome="$(cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
11
- fi
12
-
13
- function get_started {
14
- # if getting-started bootstrap is detected, put this in the path
15
- # mainly useful for getopt on os x
16
- if [[ -d "$HOME/.getting-started/bootstrap" ]]; then
17
- PATH="$HOME/.getting-started/bootstrap:$PATH"
18
- hash -r
19
- fi
20
- }
21
-
22
- function check_help {
23
- # taken from shocco
24
- if expr -- "$*" : ".*--help" >/dev/null; then
25
- display_help
26
- exit 0
27
- fi
28
- }
29
-
30
- function display_help {
31
- flags_help
32
- echo
33
-
34
- # taken from shocco
35
- grep '^#/' <"$shome/$(basename $(dirname -- "$0"))/$(basename -- "$0")" | cut -c4-
36
- }
37
-
38
- # Exits the script with the last error code. Servers as a marker in $0 to
39
- # begin ronn documentation until end of file.
40
- function __MAN__ {
41
- exit "$!"
42
- }
43
-
44
- # Extracts ronn-style Markdown after __MAN__ to stdout. If a line is "MAN", it
45
- # is assumed that a here document is used (for syntactical reasons).
46
- #
47
- # A limitation of detecting "MAN" will truncate the Markdown if "MAN" is a
48
- # legimate text.
49
- #
50
- # __MAN__ << "MAN"
51
- # raw ronn-style Markdown
52
- # MAN
53
- function display_man {
54
- awk '/^__MAN__/,/^MAN$/ {print}' <"$0" | tail -n +2 | egrep -v '^MAN$'
55
- }
56
-
57
- function display_synopsis {
58
- awk '/^#/ && !/^#!/ { print } /^[^#]/ || /^$/ { exit }' <"$0" | cut -c3-
59
- }
60
-
61
- function which_library {
62
- local library="$1"; shift
63
- if [[ -r "$shome/bin/_$library" ]]; then
64
- echo "$shome/bin/_$library"
65
- elif [[ -r "$shome/libexec/_$library" ]]; then
66
- echo "$shome/libexec/_$library"
67
- elif [[ -r "$shome/.$library/bin/_profile" ]]; then
68
- echo "$shome/.$library/bin/_profile"
69
- elif [[ -r "$shome/.$library/libexec/_profile" ]]; then
70
- echo "$shome/.$library/libexec/_profile"
71
- elif [[ -r "$shome/.$library/.profile" ]]; then
72
- echo "$shome/.$library/.profile"
73
- else
74
- local nm_library="${library%%/*}"
75
- if [[ "$nm_library" != "$library" ]]; then
76
- local nm_right="${library##*/}"
77
- if [[ -r "$shome/.$nm_library/bin/_$nm_right" ]]; then
78
- echo "$shome/.$nm_library/bin/_$nm_right"
79
- elif [[ -r "$shome/.$nm_library/libexec/_$nm_right" ]]; then
80
- echo "$shome/.$nm_library/libexec/_$nm_right"
81
- fi
82
- fi
83
- fi
84
- }
85
-
86
- function require {
87
- local nm_library="$1"; shift
88
- local pth_lib="$(which_library "$nm_library")"
89
- if [[ -r "$pth_lib" ]]; then
90
- if [[ "$#" == 0 ]]; then
91
- set --
92
- fi
93
- source "$pth_lib" "$@"
94
- fi
95
- }
96
-
97
- function parse_command_line {
98
- if [[ "$FLAGS_SUB" = "$FLAGS_TRUE" && "$@" > 0 ]]; then
99
- export POSIXLY_CORRECT=1
100
- fi
101
-
102
- if ! FLAGS "$@"; then
103
- unset POSIXLY_CORRECT
104
- if [[ "$flags_error" = "help requested" ]]; then
105
- echo ""
106
- display_help
107
- exit 0
108
- fi
109
-
110
- return 4
111
- fi
112
-
113
- unset POSIXLY_CORRECT
114
- return 0
115
- }
116
-
117
- function configure_logging {
118
- # load log4sh (disabling properties file warning) and clear the default
119
- # configuration
120
- LOG4SH_CONFIGURATION='none' require 'log4sh'
121
- log4sh_resetConfiguration
122
-
123
- # set the global logging level to INFO
124
- logger_setLevel INFO
125
-
126
- # add and configure a FileAppender that outputs to STDERR, and activate the
127
- # configuration
128
- logger_addAppender stderr
129
- appender_setType stderr FileAppender
130
- appender_file_setFile stderr STDERR
131
- appender_activateOptions stderr
132
- }
133
-
134
- function ryaml {
135
- ruby -ryaml -e 'def ps x; unless x.nil?; puts x; end; end; ps ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@" 2>&-
136
- }
137
-
138
- function random_str {
139
- echo "$(date +%s).$$.$RANDOM"
140
- }
141
-
142
- function runmany {
143
- local cpu="$1"; shift
144
- local args="$1"; shift
145
- if [[ "$#" = 0 ]]; then
146
- cat
147
- else
148
- echo "$@"
149
- fi | xargs -P $cpu -n $args -- bash -c "$*" ""
150
- }
151
-
152
- function _main {
153
- if [[ -z "$shome" ]]; then
154
- shome="$(cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
155
- fi
156
-
157
- require 'shflags'
158
-
159
- configure_logging
160
-
161
- PATH="$shome/bin:$PATH"
162
- }
163
-
164
- _main "$@"
data/libexec/_prime DELETED
@@ -1,8 +0,0 @@
1
- #!/bin/bash
2
-
3
- if [[ -z "${shome:-}" ]]; then
4
- shome="$(cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
5
- fi
6
-
7
- source "$shome/libexec/_jason"
8
- set -fue