Method: LonoCfn::Base#get_source_path

Defined in:
lib/lono_cfn/base.rb

#get_source_path(path, type) ⇒ Object

if existing in params path then use that if it doesnt assume it is a full path and check that else fall back to convention, which also eventually gets checked in check_for_errors

Type - :params or :template



76
77
78
79
80
81
82
# File 'lib/lono_cfn/base.rb', line 76

def get_source_path(path, type)
  default_convention_path = convention_path(@stack_name, type)

  return default_convention_path if path.nil?
  # convention path based on the input from the user
  convention_path(path, type)
end