Created
November 23, 2012 19:11
-
-
Save patux/4136884 to your computer and use it in GitHub Desktop.
vagrant-hostmaster process_local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if process_local?(options) | |
env.ui.info("Adding host entry for #{name} VM. Administrator privileges will be required...") unless options[:quiet] | |
sudo add_command | |
end | |
def process_local?(options = {}) | |
{:local => true}.merge(options)[:local] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment