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

Version Path
phut-0.7.4 features/support/hooks.rb
phut-0.7.3 features/support/hooks.rb
phut-0.7.2 features/support/hooks.rb
phut-0.7.1 features/support/hooks.rb
phut-0.7.0 features/support/hooks.rb
phut-0.6.11 features/support/hooks.rb
phut-0.6.10 features/support/hooks.rb
phut-0.6.9 features/support/hooks.rb
phut-0.6.8 features/support/hooks.rb
phut-0.6.7 features/support/hooks.rb
phut-0.6.6 features/support/hooks.rb