diff --git a/lib/serverspec/type/command.rb b/lib/serverspec/type/command.rb index d343295f..f946b0c2 100644 --- a/lib/serverspec/type/command.rb +++ b/lib/serverspec/type/command.rb @@ -18,9 +18,14 @@ def exit_status command_result.exit_status.to_i end + protected + def command + @name + end + private def command_result() - @command_result ||= @runner.run_command(@name) + @command_result ||= @runner.run_command(command) end end end