Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Only look for Vagrantfile if no more specific was given
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Feb 23, 2013
1 parent 082cc7f commit 1bda157
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/vagrant/environment.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ def initialize(opts=nil)
# Set the Vagrantfile name up. We append "Vagrantfile" and "vagrantfile" so that # Set the Vagrantfile name up. We append "Vagrantfile" and "vagrantfile" so that
# those continue to work as well, but anything custom will take precedence. # those continue to work as well, but anything custom will take precedence.
opts[:vagrantfile_name] ||= [] opts[:vagrantfile_name] ||= []
opts[:vagrantfile_name] = [opts[:vagrantfile_name]] if !opts[:vagrantfile_name].is_a?(Array) opts[:vagrantfile_name] = [opts[:vagrantfile_name]] if \
opts[:vagrantfile_name] += ["Vagrantfile", "vagrantfile"] !opts[:vagrantfile_name].is_a?(Array)
opts[:vagrantfile_name] = ["Vagrantfile", "vagrantfile"] if \
opts[:vagrantfile_name].empty?


# Set instance variables for all the configuration parameters. # Set instance variables for all the configuration parameters.
@cwd = opts[:cwd] @cwd = opts[:cwd]
Expand Down

0 comments on commit 1bda157

Please sign in to comment.