Class: VagrantBindfs::Vagrant::Actions::Installer

Inherits:
Object
  • Object
show all
Includes:
Concerns::Log, Concerns::Machine
Defined in:
lib/vagrant-bindfs/vagrant/actions/installer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Log

#debug, #detail, #error, #info, #logger, #warn

Methods included from Concerns::Machine

#binded_folders, #config, #guest, #machine

Constructor Details

#initialize(app, env) ⇒ Installer

Returns a new instance of Installer.



12
13
14
15
# File 'lib/vagrant-bindfs/vagrant/actions/installer.rb', line 12

def initialize(app, env)
  @app  = app
  @env  = env
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



6
7
8
# File 'lib/vagrant-bindfs/vagrant/actions/installer.rb', line 6

def app
  @app
end

#envObject (readonly)

Returns the value of attribute env.



7
8
9
# File 'lib/vagrant-bindfs/vagrant/actions/installer.rb', line 7

def env
  @env
end

Instance Method Details

#call(env) ⇒ Object



17
18
19
20
# File 'lib/vagrant-bindfs/vagrant/actions/installer.rb', line 17

def call(env)
  @app.call(env)
  apply!(env)
end