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.
- data/lib/dyntool.rb +8 -6
- 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
|
-
|
117
|
-
|
118
|
-
|
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
|