lib/jets/preheat.rb in jets-1.2.1 vs lib/jets/preheat.rb in jets-1.3.0
- old
+ new
@@ -16,9 +16,10 @@
end
def initialize(options)
@options = options # passed to Call.new options
@options[:mute_output] = true if @options[:mute_output].nil?
+ @options[:lambda_proxy] = false # do not transform controller event from {"event": "1"} to {"queryStringParameters":{"_prewarm":"1"}}
end
# Makes remote call to the Lambda function.
def warm(function_name)
Jets::Commands::Call.new(function_name, '{"_prewarm": "1"}', @options).run unless ENV['TEST']
\ No newline at end of file