Add some new delegators in Test class:
* #remote (delegates to env.remote) * #fs (delegates to env.remote.fs)
This commit is contained in:
1 parent
22613059f1
commit
913cba6c23
4 files changed
+21
-3
No files matched your search
@@ -3,7 +3,7 @@ module Producer
|
||||
module Tests
|
||||
class HasEnv < Test
|
||||
def verify
|
||||
env.remote.environment.key? arguments.first.to_s.upcase
|
||||
remote.environment.key? arguments.first.to_s.upcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ module Producer
|
||||
module Tests
|
||||
class HasFile < Test
|
||||
def verify
|
||||
env.remote.fs.file? arguments.first
|
||||
fs.file? arguments.first
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user