onering-client 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onering/api.rb +1 -1
- data/lib/onering/cli/call.rb +6 -1
- metadata +1 -1
data/lib/onering/api.rb
CHANGED
data/lib/onering/cli/call.rb
CHANGED
@@ -28,7 +28,12 @@ EOS
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.run(args)
|
31
|
-
|
31
|
+
data = STDIN.read() unless STDIN.tty?
|
32
|
+
|
33
|
+
rv = @api.request(@opts[:method], args.first, {
|
34
|
+
:body => data
|
35
|
+
}.compact)
|
36
|
+
|
32
37
|
return (rv.parsed_response || rv.response.body)
|
33
38
|
end
|
34
39
|
end
|