Sha256: a6d2d06c591a483db0d31f65a0626618995dea9695ea31fb2763aa86fb7eb64f
Contents?: true
Size: 585 Bytes
Versions: 11
Compression:
Stored size: 585 Bytes
Contents
require 'phut' Before do @pid_dir = '.' @log_dir = '.' @socket_dir = '.' end Before('@sudo') do fail 'sudo authentication failed' unless system 'sudo -v' @aruba_timeout_seconds = 10 end After('@sudo') do cd('.') do Phut.pid_dir = @pid_dir Phut.log_dir = @log_dir Phut.socket_dir = @socket_dir Phut::Parser.new.parse(@config_file).stop end end Before('@shell') do fail 'sudo authentication failed' unless system 'sudo -v' end After('@shell') do `sudo ovs-vsctl list-br`.split("\n").each do |each| run "sudo ovs-vsctl del-br #{each}" end end
Version data entries
11 entries across 11 versions & 1 rubygems