vagrant
https://github.com/mitchellh/vagrant
Ruby
Vagrant is a tool for building and distributing development environments.
Vagrant::Action::General::Package.validate!
Perform sanity validations that the provided output filepath is sane. In particular, this function validates: - The output path is a regular file (not a directory or symlink) - No file currently exists at the given path - A directory of package files was actually provided (internal)
Edit
git clone [email protected]:mitchellh/vagrant.git
cd vagrant
open lib/vagrant/action/general/package.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Vagrant--Action--General--Package-validate--for-pr
# Commit to gitgit add lib/vagrant/action/general/package.rbgit commit -m "better docs for Vagrant::Action::General::Package.validate!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Vagrant--Action--General--Package-validate--for-pr
hub pull-request
# Celebrate!