Sha256: ea5d1a20d31b93bcf6aebbc5d1dbec0c1cd760b468c0f203aae5bddaa5226f8d
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
module Squib #@api private module Args module DirValidator def ensure_dir_created(dir) unless Dir.exists?(dir) Squib.logger.warn "Dir '#{dir}' does not exist, creating it." Dir.mkdir dir end return dir end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
squib-0.9.0 | lib/squib/args/dir_validator.rb |