dyntool 0.2.3 → 0.2.4

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/lib/dyntool.rb +8 -6
  2. metadata +2 -2
data/lib/dyntool.rb CHANGED
@@ -111,17 +111,19 @@ class Parameters
111
111
  end
112
112
  def SendEvent(user,suffix,key,comment)
113
113
  @data = []
114
- @notify_apps = []
114
+ @notify_apps = []
115
115
  @flag = "false"
116
- @ARGV.each do |arg|
117
- @data << "#{arg} "
118
- end
116
+ #@ARGV.each do |arg|
117
+ # #@data << "#{arg} "
118
+ # @args = "#{arg}"
119
+ #end
120
+ @args = @ARGV.join(" ")
119
121
  @data << ":#{user}"
120
122
  @data << ":DNS"
121
- @data << ":#{comment}"
123
+ @data << ":#{comment}:"
122
124
  @dcs = @sconf.GetDcs
123
125
  @dcs.each do |dc|
124
- @result = `echo "Key73512383ghtyA1109 #{@data} " | nc -w 1 event.#{dc}.#{suffix} 7279 2> /dev/null`
126
+ @result = `echo "Key73512383ghtyA1109 #{@data} #{@args}" | nc -w 1 event.#{dc}.#{suffix} 7279 2> /dev/null`
125
127
  if @result == "accepted"
126
128
  @flag = "true"
127
129
  break
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 3
9
- version: 0.2.3
8
+ - 4
9
+ version: 0.2.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ariel Moskovich