Sha256: cd6e32d0d91be84a46a6df1e6bb3777e48df45f428a44c99cdf7dcdaba47e898

Contents?: true

Size: 248 Bytes

Versions: 17

Compression:

Stored size: 248 Bytes

Contents

class Eye::Checker::FileTouched < Eye::Checker

  param :file, [String], true
  param :delete, [TrueClass, FalseClass]

  def get_value
    File.exists?(file)
  end

  def good?(value)
    File.delete(file) if value && delete
    !value
  end

end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
eye-0.6.3 lib/eye/checker/file_touched.rb
eye-0.6.2 lib/eye/checker/file_touched.rb
eye-0.6.2.pre lib/eye/checker/file_touched.rb
ace-eye-0.6.5 lib/eye/checker/file_touched.rb
ace-eye-0.6.4 lib/eye/checker/file_touched.rb
eye-0.6.1 lib/eye/checker/file_touched.rb
ace-eye-0.6.3 lib/eye/checker/file_touched.rb
ace-eye-0.6.2 lib/eye/checker/file_touched.rb
ace-eye-0.6.1 lib/eye/checker/file_touched.rb
eye-0.6 lib/eye/checker/file_touched.rb
reel-eye-0.5.2.1 lib/eye/checker/file_touched.rb
reel-eye-0.5.2 lib/eye/checker/file_touched.rb
eye-0.5.2 lib/eye/checker/file_touched.rb
reel-eye-0.5.1 lib/eye/checker/file_touched.rb
eye-0.5.1 lib/eye/checker/file_touched.rb
reel-eye-0.5 lib/eye/checker/file_touched.rb
eye-0.5 lib/eye/checker/file_touched.rb