Sha256: 354aa27f9bb90466d4a7c2a779c1522b04b2590a85316849b6ba7294bb192f1f
Contents?: true
Size: 742 Bytes
Versions: 23
Compression:
Stored size: 742 Bytes
Contents
# frozen_string_literal: true module VagrantPlugins module ProviderLibvirt module Util module StorageUtil def storage_uid(env) env[:machine].provider_config.qemu_use_session ? Process.uid : 0 end def storage_gid(env) env[:machine].provider_config.qemu_use_session ? Process.gid : 0 end def storage_pool_path(env) if env[:machine].provider_config.storage_pool_path env[:machine].provider_config.storage_pool_path elsif env[:machine].provider_config.qemu_use_session File.expand_path('~/.local/share/libvirt/images') else '/var/lib/libvirt/images' end end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems