Method: Jets::Preheat#all_functions
- Defined in:
- lib/jets/preheat.rb
#all_functions ⇒ Object
Returns:
[
"posts_controller-index",
"posts_controller-show",
...
]
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/jets/preheat.rb', line 93 def all_functions classes.map do |klass| tasks = klass.tasks.select { |t| t.lang == :ruby } # only prewarm ruby functions tasks.map do |task| meth = task.meth underscored = klass.to_s.underscore.gsub('/','-') "#{underscored}-#{meth}" # function_name end end.flatten.uniq.compact end |