Add support for `type' command in MockRemote

This commit is contained in:
Thibault Jouan
2014-03-05 07:18:50 +00:00
parent b9976464a4
commit aa3694b58c
2 changed files with 26 additions and 0 deletions

View File

@@ -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