Module: Stackr::TemplateHelpers

Defined in:
lib/stackr/template_helpers.rb

Instance Method Summary collapse

Instance Method Details

#find_in_env(name) ⇒ Object

Put all helper methods that you want to add to the DSL here. TODO: Make something that loads project helpers too.



8
9
10
# File 'lib/stackr/template_helpers.rb', line 8

def find_in_env(name)
  find_in_map('EnvironmentMap', ref('Environment'), name)
end

#include_file(filepath, locals = {}) ⇒ Object



12
13
14
# File 'lib/stackr/template_helpers.rb', line 12

def include_file(filepath, locals={})
  interpolate(file(filepath), locals)
end