Sha256: 863da9f8d227b40f2c375ce9c97f41f2642462260db58d12baae2a2f40ae5f81

Contents?: true

Size: 617 Bytes

Versions: 155

Compression:

Stored size: 617 Bytes

Contents

Before do
  # Using "announce" causes massive warnings on 1.9.2
  @puts = true
  @original_rubylib = ENV['RUBYLIB']
  ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
end

After do
  ENV['RUBYLIB'] = @original_rubylib
end

Around do |scenario, block|
  # Note that self in an Around hook is the instance of the world
  # (here, a DebifyWorld) for the current scenario.
  initialize
  begin
    block.call
  ensure
    unless ENV['KEEP_CONTAINERS']
      containers.each do |c|
        c.remove(force: true)
      end
      
      networks.each do |n|
        n.remove
      end
    end
  end
end

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
conjur-debify-3.0.3.pre.248 features/support/hooks.rb
conjur-debify-3.0.3.pre.216 features/support/hooks.rb
conjur-debify-3.0.3.pre.145 features/support/hooks.rb
conjur-debify-3.0.3.pre.10 features/support/hooks.rb
conjur-debify-3.0.3.pre.9 features/support/hooks.rb
conjur-debify-3.0.3.pre.2005 features/support/hooks.rb
conjur-debify-3.0.3.pre.1981 features/support/hooks.rb
conjur-debify-3.0.3.pre.1971 features/support/hooks.rb
conjur-debify-3.0.3.pre.1967 features/support/hooks.rb
conjur-debify-3.0.3.pre.1965 features/support/hooks.rb
conjur-debify-3.0.3.pre.1963 features/support/hooks.rb
conjur-debify-3.0.3.pre.1961 features/support/hooks.rb
conjur-debify-3.0.3.pre.1959 features/support/hooks.rb
conjur-debify-3.0.3.pre.1957 features/support/hooks.rb
conjur-debify-3.0.3.pre.1956 features/support/hooks.rb
conjur-debify-3.0.3.pre.1954 features/support/hooks.rb
conjur-debify-3.0.3.pre.1952 features/support/hooks.rb
conjur-debify-3.0.3.pre.1950 features/support/hooks.rb
conjur-debify-3.0.3.pre.1948 features/support/hooks.rb
conjur-debify-3.0.3.pre.1946 features/support/hooks.rb