gabriel 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/gabriel.rb +1 -0
- data/scripts/gabriel.bash +22 -11
- metadata +5 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/gabriel.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Nothin' to do here
|
data/scripts/gabriel.bash
CHANGED
@@ -11,7 +11,7 @@ __god_options="${__god_options_long} ${__god_options_short}"
|
|
11
11
|
|
12
12
|
__god_log_levels="debug info warn error fatal"
|
13
13
|
|
14
|
-
|
14
|
+
__god_tasks_and_groups() {
|
15
15
|
god status > /dev/null
|
16
16
|
if [ "$?" -eq "0" ]; then
|
17
17
|
god status | awk '{ print $1 }' | tr -d \\n | sed 's/:/ /g'
|
@@ -20,6 +20,15 @@ __god_task_group_names() {
|
|
20
20
|
fi
|
21
21
|
}
|
22
22
|
|
23
|
+
__god_tasks() {
|
24
|
+
god status > /dev/null
|
25
|
+
if [ "$?" -eq "0" ]; then
|
26
|
+
god status | grep " " | awk '{ print $1 }' | tr -d \\n | sed 's/:/ /g'
|
27
|
+
else
|
28
|
+
echo ""
|
29
|
+
fi
|
30
|
+
}
|
31
|
+
|
23
32
|
_god() {
|
24
33
|
local cur prev
|
25
34
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
@@ -27,28 +36,30 @@ _god() {
|
|
27
36
|
|
28
37
|
case "${prev}" in
|
29
38
|
start|stop|restart|monitor|unmonitor|remove|status)
|
30
|
-
local
|
31
|
-
COMPREPLY=( $(compgen -W "${
|
39
|
+
local tasks_and_groups="$(__god_tasks_and_groups)"
|
40
|
+
COMPREPLY=( $(compgen -W "${tasks_and_groups}" -- ${cur}) )
|
32
41
|
return 0
|
33
42
|
;;
|
34
43
|
signal)
|
35
|
-
local
|
36
|
-
COMPREPLY=( $(compgen -W "${
|
44
|
+
local tasks_and_groups="$(__god_tasks_and_groups)"
|
45
|
+
COMPREPLY=( $(compgen -W "${tasks_and_groups}" -A signal -- ${cur}) )
|
37
46
|
return 0
|
38
47
|
;;
|
39
|
-
|
40
|
-
|
48
|
+
log)
|
49
|
+
local tasks="$(__god_tasks)"
|
50
|
+
COMPREPLY=( $(compgen -W "${tasks}" -- ${cur}) )
|
41
51
|
return 0
|
42
52
|
;;
|
43
53
|
--log-level)
|
44
54
|
COMPREPLY=( $(compgen -W "${__god_log_levels}" -- ${cur}) )
|
45
55
|
return 0
|
46
56
|
;;
|
57
|
+
god)
|
58
|
+
COMPREPLY=( $(compgen -W "${__god_commands} ${__god_options}" -- ${cur}) )
|
59
|
+
return 0
|
60
|
+
;;
|
47
61
|
*)
|
48
62
|
;;
|
49
63
|
esac
|
50
|
-
|
51
|
-
COMPREPLY=( $(compgen -W "${__god_commands} ${__god_options}" -- ${cur}) )
|
52
|
-
return 0
|
53
64
|
}
|
54
|
-
complete -F _god god
|
65
|
+
complete -o bashdefault -o default -o nospace -F _god god
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gabriel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 29
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Enrico Bianco
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-31 00:00:00 -04:00
|
19
18
|
default_executable: gabriel-install
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -34,6 +33,7 @@ files:
|
|
34
33
|
- VERSION
|
35
34
|
- bin/gabriel-install
|
36
35
|
- install
|
36
|
+
- lib/gabriel.rb
|
37
37
|
- scripts/gabriel.bash
|
38
38
|
has_rdoc: true
|
39
39
|
homepage: http://github.com/enricob/gabriel
|
@@ -45,27 +45,23 @@ rdoc_options:
|
|
45
45
|
require_paths:
|
46
46
|
- lib
|
47
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
48
|
requirements:
|
50
49
|
- - ">="
|
51
50
|
- !ruby/object:Gem::Version
|
52
|
-
hash: 3
|
53
51
|
segments:
|
54
52
|
- 0
|
55
53
|
version: "0"
|
56
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
55
|
requirements:
|
59
56
|
- - ">="
|
60
57
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 3
|
62
58
|
segments:
|
63
59
|
- 0
|
64
60
|
version: "0"
|
65
61
|
requirements: []
|
66
62
|
|
67
63
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.3.
|
64
|
+
rubygems_version: 1.3.6
|
69
65
|
signing_key:
|
70
66
|
specification_version: 3
|
71
67
|
summary: Bash completion for god
|