Class: VagrantReflect::Util::Shell

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_commandObject (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_commandObject (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_fullObject (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_incObject (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