Class: AwsMfa::ShellCommandResult

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_mfa/shell_command_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command_output, process_status) ⇒ ShellCommandResult

Returns a new instance of ShellCommandResult.



5
6
7
8
# File 'lib/aws_mfa/shell_command_result.rb', line 5

def initialize(command_output, process_status)
  @output = command_output
  @process_status = process_status
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



3
4
5
# File 'lib/aws_mfa/shell_command_result.rb', line 3

def output
  @output
end

Instance Method Details

#succeeded?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/aws_mfa/shell_command_result.rb', line 10

def succeeded?
  process_status.success?
end