embulk / embulk/gradle-embulk-plugins

gemPush supports `-k` option

Open
#152 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
3
PR merge metrics
No merged PRs in 30d

Description

The gem command has `-k` option to specify keyname in `$HOME/.gem/credentials`.
In the current version, gemPush will use the default API key always.
In general, the default API key needs OTP by default.

We can generate an API key that does not need OTP if needed.

See https://guides.rubygems.org/api-key-scopes/

That's why, I want to generate the API key without OTP and set it to `$HOME/.gem/credentials`.

```console
❯ gem help push
Usage: gem push GEM [options]

Options:
-k, --key KEYNAME Use the given API key
from /home/kenji/.gem/credentials
--otp CODE Digit code for multifactor authentication
You can also use the environment variable GEM_HOST_OTP_CODE
--host HOST Push to another gemcutter-compatible host
(e.g. https://rubygems.org)
(snip)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.