Class: VagrantBindfs::Bindfs::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-bindfs/bindfs/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(folder) ⇒ Command

Returns a new instance of Command.



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

def initialize(folder)
  @folder = folder
end

Instance Attribute Details

#folderObject (readonly)

Returns the value of attribute folder.



5
6
7
# File 'lib/vagrant-bindfs/bindfs/command.rb', line 5

def folder
  @folder
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/vagrant-bindfs/bindfs/command.rb', line 11

def to_s
  ['bindfs', arguments_for(folder.options).join(' '), folder.source, folder.destination].compact.join(' ')
end