Method: Vagrant::BoxCollection#find
- Defined in:
- lib/vagrant/box_collection.rb
#find(name) ⇒ Object
Find a box in the collection by the given name. The name must be a string, for now.
25 26 27 28 29 30 31 |
# File 'lib/vagrant/box_collection.rb', line 25 def find(name) @boxes.each do |box| return box if box.name == name end nil end |