Skip to content

Instantly share code, notes, and snippets.

@patux
Created November 23, 2012 19:11
Show Gist options
  • Save patux/4136884 to your computer and use it in GitHub Desktop.
Save patux/4136884 to your computer and use it in GitHub Desktop.
vagrant-hostmaster process_local
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