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


44
45
46
47
48
49
50
51
52
# 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