mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-03 20:39:27 -05:00
21 lines
466 B
Ruby
21 lines
466 B
Ruby
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module CommandHalt
|
|
class Plugin < Vagrant.plugin("2")
|
|
name "halt command"
|
|
description <<-DESC
|
|
The `halt` command shuts your virtual machine down forcefully.
|
|
The command `up` recreates it.
|
|
DESC
|
|
|
|
command("halt") do
|
|
require File.expand_path("../command", __FILE__)
|
|
Command
|
|
end
|
|
end
|
|
end
|
|
end
|