class AwsMfa::ShellCommand
Attributes
command[R]
Public Class Methods
new(command)
click to toggle source
# File lib/aws_mfa/shell_command.rb, line 7 def initialize(command) @command = command end
Public Instance Methods
call()
click to toggle source
# File lib/aws_mfa/shell_command.rb, line 11 def call output = `#{command}` ShellCommandResult.new(output, $?) end