Class: Rake::GemMaintenance::RenewApiKeyTask
- Inherits:
-
TaskLib
- Object
- TaskLib
- Rake::GemMaintenance::RenewApiKeyTask
- Defined in:
- lib/rake/gem/maintenance/renew_api_key_task.rb
Overview
Generates a new rubygems.org API key via the rubygems.org API and stores it in a Woodpecker CI org-level secret. Intended for local developer use only.
Creates: <namespace>:renew_api_key
Reads WOODPECKER_SERVER and WOODPECKER_TOKEN (or ~/.config/woodpecker/token) from the environment.
Instance Attribute Summary collapse
-
#api_key_env_var ⇒ Object
Returns the value of attribute api_key_env_var.
-
#ci_environment ⇒ Object
Returns the value of attribute ci_environment.
-
#credential_store ⇒ Object
Returns the value of attribute credential_store.
-
#host ⇒ Object
Returns the value of attribute host.
-
#namespace_name ⇒ Object
Returns the value of attribute namespace_name.
-
#password_env_var ⇒ Object
Returns the value of attribute password_env_var.
-
#username_env_var ⇒ Object
Returns the value of attribute username_env_var.
-
#woodpecker_org ⇒ Object
Returns the value of attribute woodpecker_org.
-
#woodpecker_secret_name ⇒ Object
Returns the value of attribute woodpecker_secret_name.
-
#woodpecker_server ⇒ Object
Returns the value of attribute woodpecker_server.
Instance Method Summary collapse
-
#initialize(namespace_name = :upgrade) ⇒ RenewApiKeyTask
constructor
A new instance of RenewApiKeyTask.
Constructor Details
#initialize(namespace_name = :upgrade) ⇒ RenewApiKeyTask
Returns a new instance of RenewApiKeyTask.
21 22 23 24 25 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 21 def initialize(namespace_name = :upgrade) super() apply_defaults(namespace_name) define_tasks end |
Instance Attribute Details
#api_key_env_var ⇒ Object
Returns the value of attribute api_key_env_var.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def api_key_env_var @api_key_env_var end |
#ci_environment ⇒ Object
Returns the value of attribute ci_environment.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def ci_environment @ci_environment end |
#credential_store ⇒ Object
Returns the value of attribute credential_store.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def credential_store @credential_store end |
#host ⇒ Object
Returns the value of attribute host.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def host @host end |
#namespace_name ⇒ Object
Returns the value of attribute namespace_name.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def namespace_name @namespace_name end |
#password_env_var ⇒ Object
Returns the value of attribute password_env_var.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def password_env_var @password_env_var end |
#username_env_var ⇒ Object
Returns the value of attribute username_env_var.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def username_env_var @username_env_var end |
#woodpecker_org ⇒ Object
Returns the value of attribute woodpecker_org.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def woodpecker_org @woodpecker_org end |
#woodpecker_secret_name ⇒ Object
Returns the value of attribute woodpecker_secret_name.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def woodpecker_secret_name @woodpecker_secret_name end |
#woodpecker_server ⇒ Object
Returns the value of attribute woodpecker_server.
17 18 19 |
# File 'lib/rake/gem/maintenance/renew_api_key_task.rb', line 17 def woodpecker_server @woodpecker_server end |