Skip to content

Commit

Permalink
synced_folder: add in some comments, change arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
dustymabe committed Mar 30, 2016
1 parent 91117f8 commit 4256e76
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/vagrant-sshfs/synced_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ def usable?(machine, raise_error=false)
# any existing ones.
#
# No return value.
def enable(machine, folders, sshfsopts)
if machine.guest.capability?(:sshfs_installed)
def enable(machine, folders, pluginopts)

# Check to see if sshfs software is in the guest
if machine.guest.capability?(:sshfs_installed)
if !machine.guest.capability(:sshfs_installed)
can_install = machine.guest.capability?(:sshfs_install)
if !can_install
Expand All @@ -46,6 +48,7 @@ def enable(machine, folders, sshfsopts)
end
end

# Iterate through the folders and mount if needed
folders.each do |id, opts|

# If already mounted then there is nothing to do
Expand Down Expand Up @@ -117,9 +120,9 @@ def detect_vagrant_host_ip(machine)
@@vagrant_host_machine_ip
end

# Function to gather authentication information (username/password)
# for doing a normal sshfs mount
def get_auth_info(machine, opts)
# opts - the synced folder options hash
# machine -
prompt_for_password = false
ssh_info = machine.ssh_info

Expand Down

0 comments on commit 4256e76

Please sign in to comment.