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)

Source | Google | Stack overflow

Edit

git clone [email protected]:mitchellh/vagrant.git

cd vagrant

open lib/vagrant/action/general/package.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Action--General--Package-validate--for-pr


# Commit to git

git add lib/vagrant/action/general/package.rbgit commit -m "better docs for Vagrant::Action::General::Package.validate!"


# Open pull request

gem 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!