Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: Vagrantfile

Issue 4768985027444736: 1369 - Integrate ensure_dependencies.py (Closed)
Patch Set: Updates since last patch set: Created Sept. 18, 2014, 2:10 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .hgsubstate ('k') | dependencies » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Vagrantfile
===================================================================
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -1,4 +1,12 @@
VAGRANTFILE_API_VERSION = "2"
+REPOSITORY_DIR = File.dirname(__FILE__)
+DEPENDENCY_SCRIPT = File.join(REPOSITORY_DIR, "ensure_dependencies.py")
+
+if !system("python", DEPENDENCY_SCRIPT)
+ error = Vagrant::Errors::VagrantError
+ error.error_message("Failed to ensure dependencies being up-to-date!")
+ raise error
+end
def define_standard_vm(config, host_name, ip)
config.vm.define host_name do |config|
« no previous file with comments | « .hgsubstate ('k') | dependencies » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld