Module: Octokit::Client::Pages
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/pages.rb
Overview
Methods for the Pages API
Instance Method Summary collapse
-
#latest_pages_build(repo, options = {}) ⇒ Object
List the latest Pages build information for a repository.
-
#pages(repo, options = {}) ⇒ Object
List Pages information for a repository.
-
#pages_build(repo, id, options = {}) ⇒ Sawyer::Resource
Get a specific Pages build by ID.
-
#pages_builds(repo, options = {}) ⇒ Array<Sawyer::Resource>
(also: #list_pages_builds)
List Pages builds for a repository.
-
#request_page_build(repo, options = {}) ⇒ Sawyer::Resource
Request a page build for the latest revision of the default branch.
Instance Method Details
#latest_pages_build(repo, options = {}) ⇒ Object
List the latest Pages build information for a repository
45 46 47 |
# File 'lib/octokit/client/pages.rb', line 45 def latest_pages_build(repo, = {}) get "#{Repository.path repo}/pages/builds/latest", end |
#pages(repo, options = {}) ⇒ Object
List Pages information for a repository
14 15 16 |
# File 'lib/octokit/client/pages.rb', line 14 def pages(repo, = {}) get "#{Repository.path repo}/pages", end |
#pages_build(repo, id, options = {}) ⇒ Sawyer::Resource
Get a specific Pages build by ID
26 27 28 |
# File 'lib/octokit/client/pages.rb', line 26 def pages_build(repo, id, = {}) get "#{Repository.path repo}/pages/builds/#{id}", end |
#pages_builds(repo, options = {}) ⇒ Array<Sawyer::Resource> Also known as: list_pages_builds
List Pages builds for a repository
35 36 37 |
# File 'lib/octokit/client/pages.rb', line 35 def pages_builds(repo, = {}) get "#{Repository.path repo}/pages/builds", end |
#request_page_build(repo, options = {}) ⇒ Sawyer::Resource
Request a page build for the latest revision of the default branch
You can only request builds for your repositories
56 57 58 |
# File 'lib/octokit/client/pages.rb', line 56 def request_page_build(repo, = {}) post "#{Repository.path repo}/pages/builds", end |