Class: Serverspec::Type::Command

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

Instance Method Summary collapse

Methods inherited from Base

#initialize, #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.strip
end

#stdoutObject



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

def stdout
  command_result.stdout.strip
end