Method: LonoCfn::Base#convention_path
- Defined in:
- lib/lono_cfn/base.rb
#convention_path(name, type) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/lono_cfn/base.rb', line 84 def convention_path(name, type) path = case type when :template format = detect_format "#{@project_root}/output/#{name}.#{format}" when :params "#{@project_root}/params/#{name}.txt" else raise "hell: dont come here" end path.sub(/^\.\//, '') end |