Method: Jets::Commands::Main#call
- Defined in:
- lib/jets/commands/main.rb
#call(function_name, payload = '') ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/jets/commands/main.rb', line 86 def call(function_name, payload='') # Printing to stdout can mangle up the response when piping # the value to jq. For example: # # `jets call --local .. | jq` # # By redirecting stderr we can use jq safely. # $stdout.sync = true $stderr.sync = true $stdout = $stderr # jets call operation Call.new(function_name, payload, ).run end |