mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-03 20:39:27 -05:00
25 lines
599 B
Ruby
25 lines
599 B
Ruby
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module CommandUp
|
|
class Plugin < Vagrant.plugin("2")
|
|
name "up command"
|
|
description <<-DESC
|
|
The `up` command brings the virtual environment up and running.
|
|
DESC
|
|
|
|
command("up") do
|
|
require File.expand_path("../command", __FILE__)
|
|
Command
|
|
end
|
|
|
|
action_hook(:store_box_metadata, :machine_action_up) do |hook|
|
|
require_relative "middleware/store_box_metadata"
|
|
hook.append(StoreBoxMetadata)
|
|
end
|
|
end
|
|
end
|
|
end
|