lib/jets/preheat.rb in jets-0.8.0 vs lib/jets/preheat.rb in jets-0.8.1
- old
+ new
@@ -18,15 +18,15 @@
def initialize(options)
@options = options # passed to Call.new options
@options[:mute_output] = true if @options[:mute_output].nil?
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']
end
- # loop through all methods fo each class
- # make the special prewarm call to keep them warm
+ # Loop through all methods for each class and makes special prewarm call to each method.
def warm_all
threads = []
all_functions.each do |function_name|
threads << Thread.new do
warm(function_name)
\ No newline at end of file