summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-05-14 11:53:16 +0200
committerTails developers <amnesia@boum.org>2012-05-16 12:53:18 +0200
commit15ad8841340fd4e85c7ca95aaff3e6118b658a95 (patch)
tree4abf0295f094e7e07371930e0d501e862addc797 /Rakefile
parentc2f42105022e1331999c1d926285730cefafab9a (diff)
vagrant: Support http_proxy during VM provisioning
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 5b92c4c..2563074 100644
--- a/Rakefile
+++ b/Rakefile
@@ -62,7 +62,7 @@ end
namespace :vm do
desc 'Start the build virtual machine'
- task :up do
+ task :up => 'validate_http_proxy' do
env = Vagrant::Environment.new(:cwd => VAGRANT_PATH, :ui_class => Vagrant::UI::Basic)
case env.primary_vm.state
when :not_created
@@ -100,7 +100,7 @@ namespace :vm do
end
desc 'Re-run virtual machine setup'
- task :provision do
+ task :provision => 'validate_http_proxy' do
env = Vagrant::Environment.new(:cwd => VAGRANT_PATH, :ui_class => Vagrant::UI::Basic)
result = env.cli('provision')
abort "'vagrant provision' failed" unless result