rabbitmqadmin-cli 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README ADDED
@@ -0,0 +1,7 @@
1
+ Follow the instructions found here to get started.
2
+
3
+ http://www.rabbitmq.com/management-cli.html
4
+
5
+ Once rabbitmqadmin is on the path you can use this gem in rake, capistrano or regular ruby.
6
+
7
+ Added parameters to connect to any host/port
@@ -1,13 +1,15 @@
1
1
  require 'json'
2
2
 
3
3
  class RabbitMqAdminCli
4
- def initialize admin_user = 'guest', admin_password = 'guest'
4
+ def initialize admin_user = 'guest', admin_password = 'guest', host = 'localhost', port = 55672
5
5
  @admin_user = admin_user
6
6
  @admin_password = admin_password
7
+ @host = host
8
+ @port = port
7
9
  @verbose = false
8
10
  end
9
11
 
10
- attr_accessor :verbose
12
+ attr_accessor :verbose, :host, :port
11
13
 
12
14
  def delete_exchanges
13
15
  list_exchanges.each { |exchange| execute "#{stub vhost} delete exchange name=#{exchange[:name]}" }
@@ -34,7 +36,7 @@ class RabbitMqAdminCli
34
36
  def stub vhost = nil
35
37
  vhost_arg = vhost.nil? ? '' : "-V #{vhost}"
36
38
 
37
- "rabbitmqadmin -u #{@admin_user} -p #{@admin_password} -f raw_json #{vhost_arg}"
39
+ "rabbitmqadmin -H #{@host} -P #{@port} -u #{@admin_user} -p #{@admin_password} -f raw_json #{vhost_arg}"
38
40
  end
39
41
 
40
42
  def list_bindings vhost
@@ -1,3 +1,3 @@
1
1
  module RabbitMqAdminCli
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rabbitmqadmin-cli'
3
- s.version = '1.0.2'
3
+ s.version = '1.0.3'
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']
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  # = MANIFEST =
12
12
  s.files = %w[
13
13
  Gemfile
14
+ README
14
15
  Rakefile
15
16
  lib/rabbitmqadmin-cli.rb
16
17
  lib/rabbitmqadmin-cli/version.rb
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.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-10-02 00:00:00.000000000 Z
13
+ date: 2011-10-07 00:00:00.000000000 +01:00
14
+ default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: json
17
- requirement: &70289769797740 !ruby/object:Gem::Requirement
18
+ requirement: &10384540 !ruby/object:Gem::Requirement
18
19
  none: false
19
20
  requirements:
20
21
  - - ! '>='
@@ -22,7 +23,7 @@ dependencies:
22
23
  version: '0'
23
24
  type: :runtime
24
25
  prerelease: false
25
- version_requirements: *70289769797740
26
+ version_requirements: *10384540
26
27
  description: Requires rabbitmqadmin to be in your path
27
28
  email:
28
29
  - lee.m.henson@gmail.com
@@ -32,10 +33,12 @@ extensions: []
32
33
  extra_rdoc_files: []
33
34
  files:
34
35
  - Gemfile
36
+ - README
35
37
  - Rakefile
36
38
  - lib/rabbitmqadmin-cli.rb
37
39
  - lib/rabbitmqadmin-cli/version.rb
38
40
  - rabbitmqadmin-cli.gemspec
41
+ has_rdoc: true
39
42
  homepage: http://github.com/leemhenson/rabbitmqadmin-cli
40
43
  licenses: []
41
44
  post_install_message:
@@ -56,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
59
  version: '0'
57
60
  requirements: []
58
61
  rubyforge_project:
59
- rubygems_version: 1.8.10
62
+ rubygems_version: 1.6.2
60
63
  signing_key:
61
64
  specification_version: 3
62
65
  summary: Ruby wrapper for calling out the rabbitmqadmin cli script