Working on save args

This commit is contained in:
Andy Meneely
2015-08-12 15:57:58 -04:00
parent af53e396dc
commit 4aee48dada
2 changed files with 29 additions and 0 deletions
+8
View File
@@ -25,6 +25,14 @@ module Squib
[] # none of them
end
def validate_dir(arg)
unless Dir.exists?(arg)
Squib.logger.warn("Dir '#{arg}' does not exist, creating it.")
Dir.mkdir arg
end
return arg
end
end
end
end