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


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


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


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

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