Exception: SSHake::Mock::UnsupportedCommandError

Inherits:
Error
  • Object
show all
Defined in:
lib/sshake/mock/unsupported_command_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ UnsupportedCommandError

Returns a new instance of UnsupportedCommandError.



9
10
11
# File 'lib/sshake/mock/unsupported_command_error.rb', line 9

def initialize(command)
  @command = command
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/sshake/mock/unsupported_command_error.rb', line 13

def to_s
  "Executed command is not support by the mock session (`#{@command}`)"
end