Module: Octokit::Client::ActionsSecrets
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/actions_secrets.rb
Overview
Methods for the Actions Secrets API
Instance Method Summary collapse
-
#create_or_update_secret(repo, name, options) ⇒ Object
Create or update secrets.
-
#delete_secret(repo, name) ⇒ Object
Delete a secret.
-
#get_public_key(repo) ⇒ Hash
Get public key for secrets encryption.
-
#get_secret(repo, name) ⇒ Hash
Get a secret.
-
#list_secrets(repo) ⇒ Hash
List secrets.
Instance Method Details
#create_or_update_secret(repo, name, options) ⇒ Object
Create or update secrets
43 44 45 |
# File 'lib/octokit/client/actions_secrets.rb', line 43 def create_or_update_secret(repo, name, ) put "#{Repository.path repo}/actions/secrets/#{name}", end |
#delete_secret(repo, name) ⇒ Object
Delete a secret
52 53 54 |
# File 'lib/octokit/client/actions_secrets.rb', line 52 def delete_secret(repo, name) boolean_from_response :delete, "#{Repository.path repo}/actions/secrets/#{name}" end |
#get_public_key(repo) ⇒ Hash
Get public key for secrets encryption
14 15 16 |
# File 'lib/octokit/client/actions_secrets.rb', line 14 def get_public_key(repo) get "#{Repository.path repo}/actions/secrets/public-key" end |
#get_secret(repo, name) ⇒ Hash
Get a secret
33 34 35 |
# File 'lib/octokit/client/actions_secrets.rb', line 33 def get_secret(repo, name) get "#{Repository.path repo}/actions/secrets/#{name}" end |
#list_secrets(repo) ⇒ Hash
List secrets
23 24 25 |
# File 'lib/octokit/client/actions_secrets.rb', line 23 def list_secrets(repo) paginate "#{Repository.path repo}/actions/secrets" end |