summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-05-03 19:07:50 +0200
committeranonym <anonym@riseup.net>2016-05-03 20:37:55 +0200
commit67c9421c79bc59fdf5c1bb1911a2e65f6947c887 (patch)
tree73caef4a1569935de9976ea9381f172dad602e43 /Rakefile
parent65775d1977f0204d2d0e1d3f7a6d0072c959b583 (diff)
Improve comments.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index c07c314..a1cb9b0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -42,8 +42,8 @@ INTERNAL_HTTP_PROXY = "http://#{VIRTUAL_MACHINE_HOSTNAME}:3142"
class VagrantCommandError < StandardError
end
-# Runs the vagrant command, letting stdout/stderr through, and returns
-# the command's exit status.
+# Runs the vagrant command, letting stdout/stderr through. Throws an
+# exception unless the vagrant command succeeds.
def run_vagrant(*args)
Process.wait Kernel.spawn('vagrant', *args, :chdir => './vagrant')
if $?.exitstatus != 0
@@ -53,7 +53,7 @@ def run_vagrant(*args)
end
# Runs the vagrant command, not letting stdout/stderr through, and
-# returns [stdout, stderr].
+# returns [stdout, stderr, Preocess:Status].
def capture_vagrant(*args)
stdout, stderr, proc_status =
Open3.capture3('vagrant', *args, :chdir => './vagrant')