lib/vars/options.rb in vars-0.0.5 vs lib/vars/options.rb in vars-0.0.6

- old
+ new

@@ -92,9 +92,12 @@ end end def capture(cmd) execute(cmd).first.chomp + out, error, status = execute(cmd) + raise error unless status.exitstatus.zero? + out.chomp end def success?(cmd) _, _, status = execute(cmd) status.exitstatus.zero?