Communicators to v2 plugins.

This commit is contained in:
Mitchell Hashimoto 2012-11-06 21:14:10 -08:00
parent 78a1e5726e
commit 45f211b19e
3 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ module Vagrant
if !@communicator if !@communicator
# For now, we always return SSH. In the future, we'll abstract # For now, we always return SSH. In the future, we'll abstract
# this and allow plugins to define new methods of communication. # this and allow plugins to define new methods of communication.
klass = Vagrant.plugin("1").manager.communicators[:ssh] klass = Vagrant.plugin("2").manager.communicators[:ssh]
@communicator = klass.new(self) @communicator = klass.new(self)
end end

View File

@ -13,7 +13,7 @@ require 'vagrant/util/ssh'
module VagrantPlugins module VagrantPlugins
module CommunicatorSSH module CommunicatorSSH
# This class provides communication with the VM via SSH. # This class provides communication with the VM via SSH.
class Communicator < Vagrant.plugin("1", :communicator) class Communicator < Vagrant.plugin("2", :communicator)
include Vagrant::Util::ANSIEscapeCodeRemover include Vagrant::Util::ANSIEscapeCodeRemover
include Vagrant::Util::Retryable include Vagrant::Util::Retryable

View File

@ -2,7 +2,7 @@ require "vagrant"
module VagrantPlugins module VagrantPlugins
module CommunicatorSSH module CommunicatorSSH
class Plugin < Vagrant.plugin("1") class Plugin < Vagrant.plugin("2")
name "ssh communiator" name "ssh communiator"
description <<-DESC description <<-DESC
This plugin allows Vagrant to communicate with remote machines using This plugin allows Vagrant to communicate with remote machines using