class AwsMfa::ShellCommand

Attributes

command[R]

Public Class Methods

new(command) click to toggle source
# File lib/aws_mfa/shell_command.rb, line 5
def initialize(command)
  @command = command
end

Public Instance Methods

call() click to toggle source
# File lib/aws_mfa/shell_command.rb, line 9
def call
  output = `#{command}`
  ShellCommandResult.new(output, $?)
end