ignore directories

This commit is contained in:
Dr Nic Williams 2018-11-06 16:12:53 +10:00
parent 465edd8740
commit 7db5b882d1
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@
<pre>
<%=
Dir["#{secrets_base_dir}/**/*"].map do |path|
path + "=" + File.read(path)
if File.directory?(path)
path + "={directory}"
else
path + "=" + File.read(path)
end
end.join("\n")
%>
</pre>