Implement `has_executable' condition keyword

This commit is contained in:
Thibault Jouan committed 2014-03-05 07:19:15 +00:00
1 parent aa3694b58c
commit eeab386216
6 files changed
+86 -5

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
module Producer
module Core
module Tests
class HasExecutable < Test
def verify
remote.execute("type #{arguments.first}")
true
rescue RemoteCommandExecutionError
false
end
end
end
end
end