2012-04-19 20:59:48 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module CommandSSHConfig
|
|
|
|
class Plugin < Vagrant.plugin("1")
|
|
|
|
name "ssh-config command"
|
|
|
|
description <<-DESC
|
|
|
|
The `ssh-config` command dumps an OpenSSH compatible configuration
|
|
|
|
that can be used to quickly SSH into your virtual machine.
|
|
|
|
DESC
|
|
|
|
|
2012-05-22 05:43:13 +00:00
|
|
|
activated do
|
|
|
|
require File.expand_path("../command", __FILE__)
|
|
|
|
end
|
|
|
|
|
2012-04-19 20:59:48 +00:00
|
|
|
command("ssh-config") { Command }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|