def validate_source
      fail Exceptions::TemplateNameIsMissing, 'Template file name is missing.' if empty?
      fail Exceptions::TemplateDoesNotExist, "File \"#{params.template}\" does not exist" unless exists?
      fail Exceptions::TemplateNameIsInvalid, "File \"#{params.template}\" is not a valid erb template: file ending erb" unless erb_template?
    end
def validate_source
      fail Exceptions::TemplateNameIsMissing, 'Template file name is missing.' if empty?
      fail Exceptions::TemplateDoesNotExist, "File \"#{params.template}\" does not exist" unless exists?
      fail Exceptions::TemplateNameIsInvalid, "File \"#{params.template}\" is not a valid erb template: file ending erb" unless erb_template?
    end
rubocop:enable MethodLength