Class: AwsMfaSecure::CLI

Inherits:
Command show all
Defined in:
lib/aws_mfa_secure/cli.rb

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Instance Method Details

#cleanObject



24
25
26
# File 'lib/aws_mfa_secure/cli.rb', line 24

def clean
  Clean.new(options).run
end

#completion(*params) ⇒ Object



30
31
32
# File 'lib/aws_mfa_secure/cli.rb', line 30

def completion(*params)
  Completer.new(CLI, *params).run
end

#completion_scriptObject



36
37
38
# File 'lib/aws_mfa_secure/cli.rb', line 36

def completion_script
  Completer::Script.generate
end

#exportsObject



12
13
14
# File 'lib/aws_mfa_secure/cli.rb', line 12

def exports
  Exports.new(options).run
end

#session(*argv) ⇒ Object



5
6
7
# File 'lib/aws_mfa_secure/cli.rb', line 5

def session(*argv)
  Session.new(options, *argv).run
end

#unsetsObject



18
19
20
# File 'lib/aws_mfa_secure/cli.rb', line 18

def unsets
  Unsets.new(options).run
end

#versionObject



41
42
43
# File 'lib/aws_mfa_secure/cli.rb', line 41

def version
  puts VERSION
end