Sha256: 208401b2fdd55b7467b5702cead00678bb7f8aed0a738a0d42dd1ec21f814e5d
Contents?: true
Size: 592 Bytes
Versions: 10
Compression:
Stored size: 592 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 in_current_dir 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
10 entries across 10 versions & 1 rubygems