Sha256: d58782fd5a951eee818d7b9644472df66c36d3e2a65b8e9424624b778caf1edd
Contents?: true
Size: 514 Bytes
Versions: 8
Compression:
Stored size: 514 Bytes
Contents
module Klipp class Configuration @@auto_create_dirs = false # set by the gem's binary def self.auto_create_dirs @@auto_create_dirs end def self.auto_create_dirs= auto_create_dirs @@auto_create_dirs = auto_create_dirs end def self.auto_create(dir) if auto_create_dirs && File.directory?(File.dirname dir) && !File.exists?(dir) Dir.mkdir dir end dir end def self.root_dir auto_create File.join(Dir.home, '.klipp') end end end
Version data entries
8 entries across 8 versions & 1 rubygems