Class: Vagrant::Environment

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

Instance Method Summary collapse

Instance Method Details

#boxes_pathObject



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

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



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

alias_method :original_boxes_path, :boxes_path