@@ -72,12 +72,12 @@ def platform
7272 # @param command [String] command string to execute
7373 # @return [CommandResult] contains the result of running the command
7474 def run_command_via_connection ( _command )
75- fail Train :: ClientError , "#{ self . class } does not implement #run_command_via_connection()"
75+ fail NotImplementedError , "#{ self . class } does not implement #run_command_via_connection()"
7676 end
7777
7878 # run command with optional caching
7979 def run_command ( command )
80- return @cacher . run_command ( command ) if @cacher . cache_enabled [ :command ] == true
80+ return @cacher . run_command ( command ) if @cacher . cache_enabled? ( :command )
8181
8282 run_command_via_connection ( command )
8383 end
@@ -88,12 +88,12 @@ def run_command(command)
8888 # @param [String] path which is being inspected
8989 # @return [FileCommon] file object that allows for interaction
9090 def file_via_connection ( _path , *_args )
91- fail Train :: ClientError , "#{ self . class } does not implement #file_via_connection(...)"
91+ fail NotImplementedError , "#{ self . class } does not implement #file_via_connection(...)"
9292 end
9393
9494 # file with optional caching
9595 def file ( path , *args )
96- return @cacher . file ( path , *args ) if @cacher . cache_enabled [ :file ] == true
96+ return @cacher . file ( path , *args ) if @cacher . cache_enabled? ( :file )
9797
9898 file_via_connection ( path , *args )
9999 end
@@ -103,7 +103,7 @@ def file(path, *args)
103103 #
104104 # @return [LoginCommand] array of command line tokens
105105 def login_command
106- fail Train :: ClientError , "#{ self . class } does not implement #login_command()"
106+ fail NotImplementedError , "#{ self . class } does not implement #login_command()"
107107 end
108108
109109 # Block and return only when the remote host is prepared and ready to
0 commit comments