Class: VagrantAWS::BoxCollection
- Inherits:
-
Vagrant::BoxCollection
- Object
- Vagrant::BoxCollection
- VagrantAWS::BoxCollection
- Defined in:
- lib/vagrant-aws/box_collection.rb
Instance Method Summary collapse
Instance Method Details
#reload! ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/vagrant-aws/box_collection.rb', line 4 def reload! @boxes.clear Dir.open(env.boxes_path) do |dir| dir.each do |d| next if d == "." || d == ".." || !File.directory?(env.boxes_path.join(d)) @boxes << VagrantAWS::Box.new(env, d) end end end |