module Vagrant::Util::CommandDeprecation::Complete

Mark command deprecation complete and fully disable the command’s functionality

Public Class Methods

included(klass) click to toggle source
# File lib/vagrant/util/command_deprecation.rb, line 44
def self.included(klass)
  klass.include(CommandDeprecation)
  klass.class_eval do
    def execute(*_)
      raise Vagrant::Errors::CommandDeprecated,
        name: deprecation_command_name
    end
  end
end

Public Instance Methods

execute(*_) click to toggle source
# File lib/vagrant/util/command_deprecation.rb, line 47
def execute(*_)
  raise Vagrant::Errors::CommandDeprecated,
    name: deprecation_command_name
end