Sha256: e155e3798d0375127b377c4e85a0c9d4fe84c80f4860b95b83f3f36b80ca8631
Contents?: true
Size: 295 Bytes
Versions: 65
Compression:
Stored size: 295 Bytes
Contents
module PEBuild module Idempotent # @param fpath [String] # @param desc [String, nil] def idempotent(fpath, desc = nil, &block) desc ||= fpath if File.exist? fpath @logger.info "#{desc} is already present." else yield end end end end
Version data entries
65 entries across 65 versions & 1 rubygems