Cache result of method calls for block scope

I ran into some block scope issues on chef 11.10 under ruby 2.  I cached the results of the method calls into block local variables before dropping into the template block.