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

Instance Method Details

#latest_pages_build(repo, options = {}) ⇒ Object

List the latest Pages build information for a repository

Parameters:

  • repo (Integer, String, Repository, Hash)

    A GitHub repository

Returns:

  • Sawyer::Resource A GitHub Pages resource about a build

See Also:


33
34
35
# File 'lib/octokit/client/pages.rb', line 33

def latest_pages_build(repo, options = {})
  get "#{Repository.path repo}/pages/builds/latest", options
end

#pages(repo, options = {}) ⇒ Object

List Pages information for a repository

Parameters:

  • repo (Integer, String, Repository, Hash)

    A GitHub repository

Returns:

  • Sawyer::Resource A GitHub Pages resource

See Also:


14
15
16
# File 'lib/octokit/client/pages.rb', line 14

def pages(repo, options = {})
  get "#{Repository.path repo}/pages", options
end

#pages_builds(repo, options = {}) ⇒ Array<Sawyer::Resource> Also known as: list_pages_builds

List Pages builds for a repository

Parameters:

  • repo (Integer, String, Repository, Hash)

    A GitHub repository

Returns:

  • (Array<Sawyer::Resource>)

    A list of build history for a repository.

See Also:


23
24
25
# File 'lib/octokit/client/pages.rb', line 23

def pages_builds(repo, options = {})
  get "#{Repository.path repo}/pages/builds", options
end