dtk-action-agent 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dtk-action-agent +5 -1
- data/lib/dtk-action-agent/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d681cedb8361d7119da4a19ac6ad046e008757fc
|
4
|
+
data.tar.gz: baba1defa66c1a03c3c13b2c791bced412946cdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 168e9ce7a0eb82dc1275dfcb66e752d880e1e4f19a4c732aa8c6cd84319a8fef976dc6479826dcfe529a5dd09fb5f85d9f56870212a32ea44bcff2ad1b266b96
|
7
|
+
data.tar.gz: f6b627f3b78ae43020c5aae52438ffd938424ab199441a6ec07140b9050b26bc8d7fe030900ea8687f80c36646cdc58ad431d01097e230d17485854a2b8b2859
|
data/bin/dtk-action-agent
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'rubygems'
|
3
3
|
require 'json'
|
4
|
+
require 'cgi'
|
5
|
+
|
4
6
|
require File.expand_path('../../lib/logger', __FILE__)
|
5
7
|
require File.expand_path('../../lib/arbiter', __FILE__)
|
6
8
|
require File.expand_path('../../lib/positioner', __FILE__)
|
@@ -12,7 +14,9 @@ unless ARGV[0]
|
|
12
14
|
}
|
13
15
|
print error_msg.to_json
|
14
16
|
else
|
15
|
-
|
17
|
+
json_cgi_string = ARGV[0]
|
18
|
+
|
19
|
+
content = JSON.parse(CGI.unescape(json_cgi_string))
|
16
20
|
arbiter = DTK::Agent::Arbiter.new(content)
|
17
21
|
results = arbiter.run()
|
18
22
|
|