2020-04-06 10:13:57 -04:00

29 lines
698 B
Ruby

require_relative "../container/config"
module VagrantPlugins
module PodmanProvisioner
class Config < VagrantPlugins::ContainerProvisioner::Config
attr_accessor :kubic
def initialize
super()
@kubic = UNSET_VALUE
end
def finalize!
super()
@kubic = false if @kubic == UNSET_VALUE
end
def post_install_provision(name, **options, &block)
# Abort
raise PodmanError, :wrong_provisioner if options[:type] == "podman"
proxy = VagrantPlugins::Kernel_V2::VMConfig.new
proxy.provision(name, **options, &block)
@post_install_provisioner = proxy.provisioners.first
end
end
end
end