Class: Vagrant::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_init.rb

Instance Method Summary collapse

Instance Method Details

#boxes_pathObject



13
14
15
16
17
18
19
# File 'lib/vagrant_init.rb', line 13

def boxes_path
  Pathname.new(
    %W[/var/lib/vagrant/boxes #{original_boxes_path}].each do |path|
      break path if File.exists?(path) and File.directory?(path) and File.writable?(path)
    end
  )
end

#original_boxes_pathObject



12
# File 'lib/vagrant_init.rb', line 12

alias_method :original_boxes_path, :boxes_path