Sha256: 060925d3d1a0b0322dc8223f60ecbc57c03e73c1d1b2ef8b901aa1a4ffce0ccb

Contents?: true

Size: 336 Bytes

Versions: 12

Compression:

Stored size: 336 Bytes

Contents

Oats.info "Running #{Oats.test.name}"
file = "#{ENV['HOME']}/#{Oats.test.name}"
total = Oats.data['count'] || 1
interval = Oats.data['interval'] || 1
total.times do |i|
  Oats.info "Count is #{i}, no file #{file}"
  if File.exists? file
    Oats.info "Found file #{file}"
    File.mv file, file+'.x'
    break
  end
  sleep interval
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
oats-0.1.4 oats_tests/examples/occTest/occTest.rb
oats-0.1.1 oats_tests/examples/occTest/occTest.rb
oats-0.1.0 oats_tests/examples/occTest/occTest.rb
oats-0.0.9 oats_tests/examples/occTest/occTest.rb
oats-0.0.8 oats_tests/examples/occTest/occTest.rb
oats-0.0.7 oats_tests/examples/occTest/occTest.rb
oats-0.0.6 oats_tests/examples/occTest/occTest.rb
oats-0.0.5 oats_tests/examples/occTest/occTest.rb
oats-0.0.4 oats_tests/examples/occTest/occTest.rb
oats-0.0.3 oats_tests/examples/occTest/occTest.rb
oats-0.0.2 oats_tests/examples/occTest/occTest.rb
oats-0.0.1 oats_tests/examples/occTest/occTest.rb