Class: Serverspec::Type::Command

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/command.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, #to_ary, #to_s

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#exit_statusObject


11
12
13
# File 'lib/serverspec/type/command.rb', line 11

def exit_status
  command_result.exit_status.to_i
end

#stderrObject


7
8
9
# File 'lib/serverspec/type/command.rb', line 7

def stderr
  command_result.stderr
end

#stdoutObject


3
4
5
# File 'lib/serverspec/type/command.rb', line 3

def stdout
  command_result.stdout
end