Class: Serverspec::Type::Command
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::Command
show all
- Defined in:
- lib/serverspec/type/command.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #to_ary, #to_s
Instance Method Details
#exit_status ⇒ Object
11
12
13
|
# File 'lib/serverspec/type/command.rb', line 11
def exit_status
command_result.exit_status.to_i
end
|
#stderr ⇒ Object
7
8
9
|
# File 'lib/serverspec/type/command.rb', line 7
def stderr
command_result.stderr.strip
end
|
#stdout ⇒ Object
3
4
5
|
# File 'lib/serverspec/type/command.rb', line 3
def stdout
command_result.stdout.strip
end
|