Class: VagrantPlugins::Deltacloud::Action::NoSyncFolders

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-deltacloud-provider/action/sync_folders.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, _env, ssh_disabled) ⇒ NoSyncFolders

Returns a new instance of NoSyncFolders.



31
32
33
34
# File 'lib/vagrant-deltacloud-provider/action/sync_folders.rb', line 31

def initialize(app, _env, ssh_disabled)
  @app = app
  @ssh_disabled = ssh_disabled
end

Instance Method Details

#call(env) ⇒ Object



36
37
38
39
40
# File 'lib/vagrant-deltacloud-provider/action/sync_folders.rb', line 36

def call(env)
  @app.call(env)
  env[:ui].info('Folders will not be synced because provider config ssh_disabled is set to true') if @ssh_disabled
  env[:ui].info('Sync folders are disabled in the provider configuration') unless @ssh_disabled
end