Module: Vagrant::Util::CommandDeprecation::Complete

Defined in:
lib/vagrant/util/command_deprecation.rb

Overview

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

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



47
48
49
50
51
52
53
54
55
# File 'lib/vagrant/util/command_deprecation.rb', line 47

def self.included(klass)
  klass.include(CommandDeprecation)
  klass.class_eval do
    def execute(*_)
      raise Vagrant::Errors::CommandDeprecated,
        name: deprecation_command_name
    end
  end
end