Module: Octokit::Client::Gitignore
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/gitignore.rb
Overview
Methods for the Gitignore API
Instance Method Summary collapse
-
#gitignore_template(template_name, options = {}) ⇒ Sawyer::Resource
Get a gitignore template.
-
#gitignore_templates(options = {}) ⇒ Array<String>
Listing available gitignore templates.
Instance Method Details
#gitignore_template(template_name, options = {}) ⇒ Sawyer::Resource
Get a gitignore template.
Use the raw / media type to get the raw contents.
39 40 41 |
# File 'lib/octokit/client/gitignore.rb', line 39 def gitignore_template(template_name, = {}) get "gitignore/templates/#{template_name}", end |
#gitignore_templates(options = {}) ⇒ Array<String>
Listing available gitignore templates.
These templates can be passed option when creating a repository.
20 21 22 |
# File 'lib/octokit/client/gitignore.rb', line 20 def gitignore_templates( = {}) get "gitignore/templates", end |