Module: Octoauth
- Defined in:
- lib/octoauth.rb,
lib/octoauth/auth.rb,
lib/octoauth/configfile.rb
Overview
Define Config spec
Defined Under Namespace
Classes: Auth, ConfigFile
Constant Summary collapse
- DEFAULT_SCOPES =
Default OAuth scopes for tokens
[].freeze
- PROMPTS =
Prompt information for collecting user info
{ login: UserInput.new(message: 'GitHub username', validation: /\w+/), password: UserInput.new(message: 'Password', secret: true), twofactor: UserInput.new(message: '2FA token', validation: /\d+/) }.freeze
- DEFAULT_FILE =
Define default file path
'~/.octoauth.yml'
Class Method Summary collapse
-
.new(*args) ⇒ Object
Insert a helper .new() method for creating a new Auth object.
Class Method Details
.new(*args) ⇒ Object
Insert a helper .new() method for creating a new Auth object
7 8 9 |
# File 'lib/octoauth.rb', line 7 def new(*args) self::Auth.new(*args) end |