2015-11-24 16:08:30 +00: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 20:48:07 +00:00
|
|
|
require_relative "command"
|
|
|
|
self.init!
|
2015-11-24 16:08:30 +00:00
|
|
|
Command
|
|
|
|
end
|
2015-11-24 20:48:07 +00: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 16:08:30 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|