Class: Vagrant::VSshFs::Actions::Up

Inherits:
Object
  • Object
show all
Defined in:
lib/valkyrie-sshfs/actions.rb

Direct Known Subclasses

Reload

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ Up

Returns a new instance of Up.



9
10
11
# File 'lib/valkyrie-sshfs/actions.rb', line 9

def initialize(app, env)
  @machine = env[:machine]
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
# File 'lib/valkyrie-sshfs/actions.rb', line 13

def call(env)
  get_builder(env).mount! if @machine.config.vsshfs.enabled
end