Sha256: 8601c399b806f5fd719a4d1b4133e7779b74a4847471af47a92dcf6b8f15711a
Contents?: true
Size: 366 Bytes
Versions: 38
Compression:
Stored size: 366 Bytes
Contents
require 'fileutils' module Dply class SharedDirs def initialize(extra_dirs) dirs << extra_dirs end def create FileUtils.mkdir_p dirs end def create_in(dir) Dir.chdir(dir) { create } end def dirs @dirs ||= [ "tmp", "log", "tmp/pids", "tmp/sockets" ] end end end
Version data entries
38 entries across 38 versions & 1 rubygems