Add support for `type' command in MockRemote
This commit is contained in:
1 parent
b9976464a4
commit
aa3694b58c
2 files changed
+26
No files matched your search
@@ -17,6 +17,13 @@ module Producer
|
||||
output << ''
|
||||
when 'false'
|
||||
raise RemoteCommandExecutionError
|
||||
when 'type'
|
||||
raise RemoteCommandExecutionError unless %w[
|
||||
echo
|
||||
true
|
||||
false
|
||||
type
|
||||
].include? tokens.first
|
||||
end
|
||||
|
||||
output
|
||||
|
||||
Reference in new issue
Block a user