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.



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

def initialize(folder)
  @folder = folder
end

Instance Attribute Details

#folderObject (readonly)

Returns the value of attribute folder.



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

def folder
  @folder
end

Instance Method Details

#to_s(bindfs_command = 'bindfs') ⇒ Object



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

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