vagrant/plugins/commands/port/plugin.rb

31 lines
613 B
Ruby
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
2015-11-24 11:08:30 -05:00
require "vagrant"
module VagrantPlugins
module CommandPort
class Plugin < Vagrant.plugin("2")
name "port command"
description <<-DESC
The `port` command displays guest port mappings.
DESC
command("port") do
2015-11-24 15:48:07 -05:00
require_relative "command"
self.init!
2015-11-24 11:08:30 -05:00
Command
end
2015-11-24 15:48:07 -05:00
protected
def self.init!
return if defined?(@_init)
I18n.load_path << File.expand_path("../locales/en.yml", __FILE__)
I18n.reload!
@_init = true
end
2015-11-24 11:08:30 -05:00
end
end
end