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
46 47 48 |
# File 'lib/octokit/client/pages.rb', line 46 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 29 |
# File 'lib/octokit/client/pages.rb', line 26 def pages_build(repo, id, = {}) opts = ensure_api_media_type(:pages, ) get "#{Repository.path repo}/pages/builds/#{id}", opts end |
#pages_builds(repo, options = {}) ⇒ Array<Sawyer::Resource> Also known as: list_pages_builds
List Pages builds for a repository
36 37 38 |
# File 'lib/octokit/client/pages.rb', line 36 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
57 58 59 60 |
# File 'lib/octokit/client/pages.rb', line 57 def request_page_build(repo, = {}) opts = ensure_api_media_type(:pages, ) post "#{Repository.path repo}/pages/builds", opts end |