mqsink 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. data/bin/mqsinkd +11 -0
  2. metadata +1 -1
data/bin/mqsinkd CHANGED
@@ -9,6 +9,17 @@ def local_boot
9
9
  system("touch /etc/mqsink/acl.conf")
10
10
  system("touch /etc/mqsink/classifiers.conf")
11
11
  system("touch /etc/mqsink/mqsink.json")
12
+ base_config = { :localhost => '0.0.0.0', :localport => 514, :amqp_server => '127.0.0.1', :static_queue => 'test_queue', :mode => 'raw',
13
+ :firewall => 'on', :fw_file => '/etc/mqsink/acl.conf', :debug => 'off', :classifiers => '/etc/mqsink/classifiers.conf' }
14
+ File.open('/etc/mqsink/mqsink.json', 'w+') do |wr|
15
+ wr.puts JSON.dump base_config
16
+ end
17
+ File.open('/etc/mqsink/acl.conf', 'w+') do |wr|
18
+ wr.puts '0.0.0.0'
19
+ end
20
+ File.open('/etc/mqsink/classifiers.conf', 'w+') do |wr|
21
+ wr.puts '.*'
22
+ end
12
23
  end
13
24
  end
14
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mqsink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: