Method: Cuboid::OptionGroups::Paths#tmpdir

Defined in:
lib/cuboid/option_groups/paths.rb

#tmpdirObject



132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/cuboid/option_groups/paths.rb', line 132

def tmpdir
    return @tmpdir if @tmpdir

    dir = tmp_dir_for( Process.pid )

    FileUtils.mkdir_p dir
    at_exit do
        FileUtils.rm_rf dir
    end

    @tmpdir = dir
end