Class: AwsMfa::ShellCommandResult
- Inherits:
-
Object
- Object
- AwsMfa::ShellCommandResult
- Defined in:
- lib/aws_mfa/shell_command_result.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(command_output, process_status) ⇒ ShellCommandResult
constructor
A new instance of ShellCommandResult.
- #succeeded? ⇒ Boolean
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
#output ⇒ Object (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
10 11 12 |
# File 'lib/aws_mfa/shell_command_result.rb', line 10 def succeeded? process_status.success? end |