Class: Teems::Commands::Auth

Inherits:
Base
  • Object
show all
Includes:
AuthStatus, AuthTokenInput
Defined in:
lib/teems/commands/auth.rb

Overview

Manages authentication with Microsoft Teams

Constant Summary collapse

AUTH_OPTIONS =
{
  '--certauth' => ->(opts, _args) { opts[:certauth] = true }
}.freeze

Instance Attribute Summary

Attributes inherited from Base

#options, #positional_args, #runner

Instance Method Summary collapse

Methods included from AuthTokenInput

#set_tokens

Constructor Details

#initialize(args, runner:) ⇒ Auth

Returns a new instance of Auth.



177
178
179
180
# File 'lib/teems/commands/auth.rb', line 177

def initialize(args, runner:)
  @options = {}
  super
end

Instance Method Details

#executeObject



182
183
184
185
186
187
# File 'lib/teems/commands/auth.rb', line 182

def execute
  result = validate_options
  return result if result

  dispatch_action(positional_args.first)
end