Implement `has_dir' condition keyword

This commit is contained in:
Thibault Jouan
2014-01-21 15:02:07 +00:00
parent 9d7af04d28
commit 0b4df20f55
7 changed files with 69 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ module Producer
end
define_test :has_env, Tests::HasEnv
define_test :has_dir, Tests::HasDir
define_test :has_file, Tests::HasFile
attr_reader :block, :env, :tests

View File

@@ -0,0 +1,11 @@
module Producer
module Core
module Tests
class HasDir < Test
def verify
fs.dir? arguments.first
end
end
end
end
end