Module: Octokit::Client::Pages
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/client/pages.rb |
Overview
Methods for the Pages
API
Instance Method Summary
-
#latest_pages_build(repo, options = {}) ⇒ Object
List the latest
Pages
build information for a repository. -
#list_pages_builds(repo, options = {})
Alias for #pages_builds.
-
#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
# File 'lib/octokit/client/pages.rb', line 45
def latest_pages_build(repo, = {}) get "#{Repository.path repo}/pages/builds/latest", end
#list_pages_builds(repo, options = {})
Alias for #pages_builds.
# File 'lib/octokit/client/pages.rb', line 38
alias list_pages_builds pages_builds
#pages(repo, options = {}) ⇒ Object
List Pages information for a repository
# 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
# 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
# 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
# File 'lib/octokit/client/pages.rb', line 56
def request_page_build(repo, = {}) post "#{Repository.path repo}/pages/builds", end