Class: VagrantReflect::Util::Shell
- Inherits:
-
Object
- Object
- VagrantReflect::Util::Shell
- Defined in:
- lib/vagrant-reflect/util/shell.rb
Overview
This is a helper that builds the required commands and returns them
Instance Attribute Summary collapse
-
#rm_command ⇒ Object
readonly
Returns the value of attribute rm_command.
-
#rmdir_command ⇒ Object
readonly
Returns the value of attribute rmdir_command.
-
#rsync_command_full ⇒ Object
readonly
Returns the value of attribute rsync_command_full.
-
#rsync_command_inc ⇒ Object
readonly
Returns the value of attribute rsync_command_inc.
Instance Method Summary collapse
-
#initialize(machine, guestpath, hostpath, excludes) ⇒ Shell
constructor
A new instance of Shell.
Constructor Details
#initialize(machine, guestpath, hostpath, excludes) ⇒ Shell
Returns a new instance of Shell.
5 6 7 8 9 10 11 12 13 |
# File 'lib/vagrant-reflect/util/shell.rb', line 5 def initialize(machine, guestpath, hostpath, excludes) @machine = machine @guestpath = guestpath @hostpath = hostpath @excludes = excludes || [] init_connection_info init_commands end |
Instance Attribute Details
#rm_command ⇒ Object (readonly)
Returns the value of attribute rm_command.
17 18 19 |
# File 'lib/vagrant-reflect/util/shell.rb', line 17 def rm_command @rm_command end |
#rmdir_command ⇒ Object (readonly)
Returns the value of attribute rmdir_command.
18 19 20 |
# File 'lib/vagrant-reflect/util/shell.rb', line 18 def rmdir_command @rmdir_command end |
#rsync_command_full ⇒ Object (readonly)
Returns the value of attribute rsync_command_full.
16 17 18 |
# File 'lib/vagrant-reflect/util/shell.rb', line 16 def rsync_command_full @rsync_command_full end |
#rsync_command_inc ⇒ Object (readonly)
Returns the value of attribute rsync_command_inc.
15 16 17 |
# File 'lib/vagrant-reflect/util/shell.rb', line 15 def rsync_command_inc @rsync_command_inc end |