Implement `has_env' condition keyword

This commit is contained in:
Thibault Jouan
2013-08-18 20:06:36 +00:00
parent b0ea7d876e
commit 04afc82a29
6 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
module Producer
module Core
class Tests
class HasEnv < Test
def success?
env.remote.environment.has_key? arguments.first.to_s.upcase
end
end
end
end
end