class VagrantPlugins::ManagedServers::Action::WarnWinRMSyncedFolders
Public Class Methods
new(app, env)
click to toggle source
# File lib/vagrant-managed-servers/action/warn_winrm_syncedfolders.rb, line 5 def initialize(app, env) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-managed-servers/action/warn_winrm_syncedfolders.rb, line 9 def call(env) if env[:machine].config.vm.communicator == :winrm && !Vagrant.has_plugin?("vagrant-winrm-syncedfolders") env[:ui].warn(I18n.t("vagrant_managed_servers.warn_winrm_syncedfolders")) end @app.call(env) end