Sha256: 07a25ba11cf197a3a3d6fa6f8408eb5e0fe878321a7acf3b8e147a19ef8f7ba2
Contents?: true
Size: 221 Bytes
Versions: 3
Compression:
Stored size: 221 Bytes
Contents
module Squib::Args::DirValidator def ensure_dir_created(dir) unless Dir.exist?(dir) Squib.logger.warn "Dir '#{dir}' does not exist, creating it." FileUtils.mkdir_p dir end return dir end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
squib-0.19.0 | lib/squib/args/dir_validator.rb |
squib-0.19.0b | lib/squib/args/dir_validator.rb |
squib-0.19.0a | lib/squib/args/dir_validator.rb |