amqp-tools 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/amqp-tools.gemspec +1 -1
- data/bin/amqp-linux-health-monitor +6 -3
- metadata +3 -3
data/amqp-tools.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
exec "cat #{
|
2
|
+
exec "cat #{__FILE__} | tail -n+4 | AMQP_OPTS='#{$* * " "}' /bin/bash"
|
3
3
|
__END__
|
4
4
|
|
5
5
|
#!/bin/bash
|
@@ -21,8 +21,11 @@ __END__
|
|
21
21
|
# "disk_usage": "43%"
|
22
22
|
# }
|
23
23
|
|
24
|
+
if [[ -z "$AMQP_OPTS" ]]; then
|
25
|
+
AMQP_OPTS=$@
|
26
|
+
fi
|
24
27
|
|
25
|
-
if [[
|
28
|
+
if [[ -z "$AMQP_OPTS" ]]; then
|
26
29
|
echo "usage: $0 [amqp-send options]"
|
27
30
|
exit 1
|
28
31
|
fi
|
@@ -68,6 +71,6 @@ data=$(
|
|
68
71
|
)
|
69
72
|
|
70
73
|
echo "{ $data }" | sed -e ':x;N;$!bx;s/\n/ /g' | \
|
71
|
-
amqp-send
|
74
|
+
amqp-send $AMQP_OPTS
|
72
75
|
|
73
76
|
exit $?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-02-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: amqp
|
16
|
-
requirement: &
|
16
|
+
requirement: &19696520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.8.9
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *19696520
|
25
25
|
description: command line tools for AMQP/RabbitMQ
|
26
26
|
email:
|
27
27
|
- paul@paulasmuth.com
|