Sha256: d03c22d4a7303077217ec64350cba2a926fe0069be467aad6b2adcc2df806d35
Contents?: true
Size: 392 Bytes
Versions: 11
Compression:
Stored size: 392 Bytes
Contents
require 'delegate' require 'tempfile' class MiqTempfile < DelegateClass(Tempfile) # TODO: share this definition with appliance console code. MIQ_TMP_DIR = '/var/www/miq_tmp'.freeze def initialize(basename, *options) if File.directory?(MIQ_TMP_DIR) super(Tempfile.new(basename, MIQ_TMP_DIR, *options)) else super(Tempfile.new(basename, *options)) end end end
Version data entries
11 entries across 11 versions & 1 rubygems