module VagrantPlugins::ProviderLibvirt::Util::Compat

Public Class Methods

action_hook_args(name, action) click to toggle source
# File lib/vagrant-libvirt/util/compat.rb, line 11
def self.action_hook_args(name, action)
  # handle different number of arguments for action_hook depending on vagrant version
  if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('2.2.11')
    return name, action
  end

  return name
end