rabbitmqadmin-cli 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rabbitmqadmin-cli.rb +3 -3
- data/lib/rabbitmqadmin-cli/version.rb +1 -1
- data/rabbitmqadmin-cli.gemspec +1 -1
- metadata +10 -5
data/lib/rabbitmqadmin-cli.rb
CHANGED
@@ -2,8 +2,8 @@ require 'json'
|
|
2
2
|
|
3
3
|
class RabbitMqAdminCli
|
4
4
|
|
5
|
-
def self.test_connect(host, port, scheme = "http")
|
6
|
-
`wget --spider -T 1 -t 1 #{scheme}://#{host}:#{port}/img/rabbitmqlogo.png >/dev/null 2>&1`
|
5
|
+
def self.test_connect(host, port, username, pasword, scheme = "http")
|
6
|
+
`wget --spider -T 1 -t 1 --user=#{username} --password=#{password} #{scheme}://#{host}:#{port}/img/rabbitmqlogo.png >/dev/null 2>&1`
|
7
7
|
case $?.exitstatus
|
8
8
|
when 0, 6
|
9
9
|
[0, "All OK"]
|
@@ -22,7 +22,7 @@ class RabbitMqAdminCli
|
|
22
22
|
@host = host
|
23
23
|
@port = port
|
24
24
|
@verbose = false
|
25
|
-
code, msg = self.class.test_connect(@host, @port)
|
25
|
+
code, msg = self.class.test_connect(@host, @port, @admin_user, @admin_password)
|
26
26
|
raise msg unless code == 0
|
27
27
|
end
|
28
28
|
|
data/rabbitmqadmin-cli.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'rabbitmqadmin-cli'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.6'
|
4
4
|
s.platform = RUBY_PLATFORM.to_s == 'java' ? 'java' : Gem::Platform::RUBY
|
5
5
|
s.authors = ['Lee Henson', 'Guy Boertje']
|
6
6
|
s.email = ['lee.m.henson@gmail.com', 'guyboertje@gmail.com']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbitmqadmin-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2012-08-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,12 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
26
31
|
description: Requires rabbitmqadmin to be in your path
|
27
32
|
email:
|
28
33
|
- lee.m.henson@gmail.com
|
@@ -57,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
62
|
version: '0'
|
58
63
|
requirements: []
|
59
64
|
rubyforge_project:
|
60
|
-
rubygems_version: 1.8.
|
65
|
+
rubygems_version: 1.8.23
|
61
66
|
signing_key:
|
62
67
|
specification_version: 3
|
63
68
|
summary: Ruby wrapper for calling out the rabbitmqadmin cli script
|