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/_treadstone DELETED
@@ -1,12 +0,0 @@
1
- #!/bin/bash
2
-
3
- if [[ -z "${shome:-}" ]]; then
4
- shome="$(cd -P -- "$(dirname -- "${BASH_SOURCE}")/.." && pwd -P)"
5
- fi
6
-
7
- if [[ -z "${_AO_HOME:-}" ]]; then
8
- export _AO_HOME="$(dirname "$BUNDLE_GEMFILE")"
9
- fi
10
-
11
- source "$shome/libexec/_jason"
12
- set -fue
data/libexec/_versions DELETED
@@ -1,174 +0,0 @@
1
- #! /bin/sh
2
- # $Id$
3
- # vim:et:ft=sh:sts=2:sw=2
4
- #
5
- # Copyright 2008 Kate Ward. All Rights Reserved.
6
- # Released under the LGPL (GNU Lesser General Public License)
7
- #
8
- # Author: kate.ward@forestent.com (Kate Ward)
9
- #
10
- # This library provides reusable functions that determine actual names and
11
- # versions of installed shells and the OS. The library can also be run as a
12
- # script if set execuatable.
13
-
14
- VERSIONS_SHELLS='/bin/bash /bin/dash /bin/ksh /bin/pdksh /bin/sh /bin/zsh'
15
-
16
- #------------------------------------------------------------------------------
17
- # functions
18
- #
19
-
20
- versions_osName()
21
- {
22
- os_name_='unrecognized'
23
- os_system_=`uname -s`
24
- case ${os_system_} in
25
- Cygwin) os_name_='Cygwin' ;;
26
- Darwin) os_name_='Mac OS X' ;;
27
- Linux) os_name_='Linux' ;;
28
- SunOS) os_name_='Solaris' ;;
29
- esac
30
- echo ${os_name_}
31
- unset os_name_ os_system_
32
- }
33
-
34
- versions_osRelease()
35
- {
36
- os_str_='unrecognized'
37
- os_system_=`uname -s`
38
- os_release_=`uname -r`
39
- case ${os_system_} in
40
- Cygwin) os_str_='unknown' ;;
41
- Darwin)
42
- major_='10'
43
- sub_=`echo ${os_release_} |\
44
- sed 's/^[0-9]*\.\([0-9]*\)\.[0-9]*$/\1/'`
45
- case ${os_release_} in
46
- 8.*) minor_='4' ;;
47
- 9.*) minor_='5' ;;
48
- *) minor_='X'; sub_='X' ;;
49
- esac
50
- os_str_="${major_}.${minor_}.${sub_}"
51
- ;;
52
- Linux)
53
- if [ -r '/etc/lsb-release' ]; then
54
- os_str_=`. /etc/lsb-release && \
55
- echo "${DISTRIB_ID:-}-${DISTRIB_RELEASE:-}"`
56
- fi
57
- if [ "${os_release_}" = '-' ]; then
58
- os_str_=''
59
- if [ -r '/etc/redhat-release' ]; then
60
- os_str_=`cat /etc/redhat-release`
61
- fi
62
- fi
63
- ;;
64
- SunOS)
65
- os_version_=`versions_osVersion`
66
-
67
- os_str_=`echo ${os_release_} |sed 's/[0-9]*\.\([0-9]*\)/\1/'`
68
- os_str_="${os_release_}-${os_version_}"
69
- ;;
70
- esac
71
- echo ${os_str_}
72
- unset os_name_ os_release_ os_str_ os_version_ major_ minor_ sub_
73
- }
74
-
75
- versions_osVersion()
76
- {
77
- uname -v
78
- }
79
-
80
- versions_shellVersion()
81
- {
82
- shell_=$1
83
-
84
- if [ ! -x "${shell_}" ]; then
85
- echo 'not installed'
86
- return
87
- fi
88
-
89
- version_=''
90
- case ${shell_} in
91
- */sh)
92
- # TODO(kward): fix this
93
- ## this could be one of any number of shells. try until one fits.
94
- #version_=`versions_shell_bash ${shell_}`
95
- ## dash cannot be self determined yet
96
- #[ -z "${version_}" ] && version_=`versions_shell_ksh ${shell_}`
97
- ## pdksh is covered in versions_shell_ksh()
98
- #[ -z "${version_}" ] && version_=`versions_shell_zsh ${shell_}`
99
- ;;
100
- */bash) version_=`versions_shell_bash ${shell_}` ;;
101
- */dash)
102
- # simply assuming Ubuntu Linux until somebody comes up with a better
103
- # test. the following test will return an empty string if dash is not
104
- # installed.
105
- version_=`versions_shell_dash`
106
- ;;
107
- */ksh) version_=`versions_shell_ksh ${shell_}` ;;
108
- */pdksh) version_=`versions_shell_pdksh ${shell_}` ;;
109
- */zsh) version_=`versions_shell_zsh ${shell_}` ;;
110
- *) version_='invalid'
111
- esac
112
-
113
- echo ${version_:-unknown}
114
- unset shell_ version_
115
- }
116
-
117
- versions_shell_bash()
118
- {
119
- $1 --version 2>&1 |grep 'GNU bash' |sed 's/.*version \([^ ]*\).*/\1/'
120
- }
121
-
122
- versions_shell_dash()
123
- {
124
- dpkg -l |grep ' dash ' |awk '{print $3}'
125
- }
126
-
127
- versions_shell_ksh()
128
- {
129
- versions_shell_=$1
130
-
131
- versions_version_=`strings ${versions_shell_} 2>&1 \
132
- |grep Version \
133
- |sed 's/^.*Version \(.*\)$/\1/;s/ s+ \$$//;s/ /-/g'`
134
- [ -z "${versions_version_}" ] \
135
- && versions_version_=`versions_shell_pdksh ${versions_shell_}`
136
- echo ${versions_version_}
137
-
138
- unset versions_shell_ versions_version_
139
- }
140
-
141
- versions_shell_pdksh()
142
- {
143
- strings $1 2>&1 \
144
- |grep 'PD KSH' \
145
- |sed -e 's/.*PD KSH \(.*\)/\1/;s/ /-/g'
146
- }
147
-
148
- versions_shell_zsh()
149
- {
150
- echo 'echo ${ZSH_VERSION}' |$1
151
- }
152
-
153
- #------------------------------------------------------------------------------
154
- # main
155
- #
156
-
157
- versions_main()
158
- {
159
- # treat unset variables as an error
160
- set -u
161
-
162
- os_name=`versions_osName`
163
- os_version=`versions_osVersion`
164
- echo "os: ${os_name} version: ${os_version}"
165
-
166
- for shell in ${VERSIONS_SHELLS}; do
167
- shell_version=`versions_shellVersion ${shell}`
168
- echo "shell: ${shell} version: ${shell_version}"
169
- done
170
- }
171
-
172
- if [ "`basename -- $0`" = 'versions' ]; then
173
- versions_main "$@"
174
- fi
data/libexec/stub DELETED
@@ -1,15 +0,0 @@
1
- #!/bin/bash
2
-
3
- #/ NAME
4
- #/ stub -- symlink catchall to implement 37signals/sub interface
5
- #/
6
- #/ SYNOPSIS
7
- #/ ln -nfs stub bin/stubbed-command
8
-
9
- # figure out the project root under which bin, lib live
10
- shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
11
-
12
- # load a jason bourne library
13
- source "$shome/libexec/_treadstone"
14
-
15
- require 'sub' "$BASH_SOURCE" "$@"
data/libexec/stub-prepare DELETED
@@ -1,34 +0,0 @@
1
- #!/bin/bash
2
-
3
- #/ NAME
4
- #/ stub-prepare -- prepares a new stub
5
- #/
6
- #/ SYNOPSIS
7
- #/ stub prepare <new_command>
8
-
9
- # figure out the project root under which bin, lib live
10
- shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
11
-
12
- # load a jason bourne library
13
- source "$shome/libexec/_treadstone"
14
-
15
- # entry point
16
- function main {
17
- if [[ "$#" = 0 ]]; then
18
- logger_fatal "missing new command name"
19
- exit 1
20
- fi
21
-
22
- local dollar='$'
23
- local nm_command="$1"; shift
24
-
25
-
26
- cp "$shome/libexec/stub" "$shome/libexec/$nm_command"
27
- ln -nfsv $nm_command "$shome/bin/$nm_command"
28
- chmod 755 "$shome/libexec/$nm_command"
29
-
30
- logger_info "$nm_command is stubbed at bin/$nm_command"
31
- logger_info "edit libexec/$nm_command for the actual script"
32
- }
33
-
34
- require 'sub' "$BASH_SOURCE" "$@"