Class: VagrantBindfs::Bindfs::Command
- Inherits:
-
Object
- Object
- VagrantBindfs::Bindfs::Command
- Defined in:
- lib/vagrant-bindfs/bindfs/command.rb
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 ⇒ Object
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
#folder ⇒ Object (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_s ⇒ Object
11 12 13 |
# File 'lib/vagrant-bindfs/bindfs/command.rb', line 11 def to_s ['bindfs', arguments_for(folder.).join(' '), folder.source, folder.destination].compact.join(' ') end |