Module: Octokit::EnterpriseAdminClient::SearchIndexing
- Included in:
- Octokit::EnterpriseAdminClient
- Defined in:
- lib/octokit/enterprise_admin_client/search_indexing.rb
Overview
Methods for the Enterprise Search Indexing API
Instance Method Summary collapse
-
#index_repository(repo) ⇒ Sawyer:Resource
Queue a Repository to be indexed.
-
#index_repository_code(repo) ⇒ Sawyer:Resource
Queue a repository’s code to be indexed.
-
#index_repository_issues(repo) ⇒ Sawyer:Resource
Queue a repository’s Issues to be indexed.
-
#index_user(user) ⇒ Sawyer:Resource
(also: #index_organization)
Queue a User or Organization to be indexed.
-
#index_users_repositories(user) ⇒ Sawyer:Resource
(also: #index_organizations_repositories)
Queue a user’s or organization’s repositories to be indexed.
-
#index_users_repositories_code(user) ⇒ Sawyer:Resource
(also: #index_organizations_repositories_code)
Queue an index of all the code contained in all of a user’s or organization’s repositories.
-
#index_users_repositories_issues(user) ⇒ Sawyer:Resource
(also: #index_organizations_repositories_issues)
Queue an index of all the issues across all of a user’s or organization’s repositories.
Instance Method Details
#index_repository(repo) ⇒ Sawyer:Resource
Queue a Repository to be indexed
22 23 24 |
# File 'lib/octokit/enterprise_admin_client/search_indexing.rb', line 22 def index_repository(repo) queue_index Repository.new repo end |
#index_repository_code(repo) ⇒ Sawyer:Resource
Queue a repository’s code to be indexed
38 39 40 |
# File 'lib/octokit/enterprise_admin_client/search_indexing.rb', line 38 def index_repository_code(repo) queue_index "#{Repository.new repo}/code" end |
#index_repository_issues(repo) ⇒ Sawyer:Resource
Queue a repository’s Issues to be indexed
30 31 32 |
# File 'lib/octokit/enterprise_admin_client/search_indexing.rb', line 30 def index_repository_issues(repo) queue_index "#{Repository.new repo}/issues" end |
#index_user(user) ⇒ Sawyer:Resource Also known as: index_organization
Queue a User or Organization to be indexed
13 14 15 |
# File 'lib/octokit/enterprise_admin_client/search_indexing.rb', line 13 def index_user(user) queue_index user end |
#index_users_repositories(user) ⇒ Sawyer:Resource Also known as: index_organizations_repositories
Queue a user’s or organization’s repositories to be indexed
46 47 48 |
# File 'lib/octokit/enterprise_admin_client/search_indexing.rb', line 46 def index_users_repositories(user) queue_index "#{user}/*" end |
#index_users_repositories_code(user) ⇒ Sawyer:Resource Also known as: index_organizations_repositories_code
Queue an index of all the code contained in all of a user’s or organization’s repositories
66 67 68 |
# File 'lib/octokit/enterprise_admin_client/search_indexing.rb', line 66 def index_users_repositories_code(user) queue_index "#{user}/*/code" end |
#index_users_repositories_issues(user) ⇒ Sawyer:Resource Also known as: index_organizations_repositories_issues
Queue an index of all the issues across all of a user’s or organization’s repositories
56 57 58 |
# File 'lib/octokit/enterprise_admin_client/search_indexing.rb', line 56 def index_users_repositories_issues(user) queue_index "#{user}/*/issues" end |