class Serverspec::Type::Command

Public Instance Methods

exit_status() click to toggle source
# File lib/serverspec/type/command.rb, line 11
def exit_status
  command_result.exit_status.to_i
end
stderr() click to toggle source
# File lib/serverspec/type/command.rb, line 7
def stderr
  command_result.stderr.strip
end
stdout() click to toggle source
# File lib/serverspec/type/command.rb, line 3
def stdout
  command_result.stdout.strip
end

Private Instance Methods

command_result() click to toggle source
# File lib/serverspec/type/command.rb, line 16
def command_result()
  @command_result ||= @runner.run_command(@name)
end