Class: VagrantBindfs::Bindfs::Command
- Inherits:
-
Object
- Object
- VagrantBindfs::Bindfs::Command
- Defined in:
- lib/vagrant-bindfs/bindfs/command.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#folder ⇒ Object
readonly
Returns the value of attribute folder.
Instance Method Summary collapse
-
#initialize(folder) ⇒ Command
constructor
A new instance of Command.
- #to_s(bindfs_command = 'bindfs') ⇒ Object
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
#folder ⇒ Object (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.).join(' '), folder.source, folder.destination].compact.join(' ') end |