Module: Octokit::Client::Gitignore
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/gitignore.rb
Instance Method Summary collapse
-
#gitignore_template(template_name, options = {}) ⇒ Hash
Get a gitignore template.
-
#gitignore_templates(options = {}) ⇒ Array<String>
Listing available gitignore templates.
Instance Method Details
#gitignore_template(template_name, options = {}) ⇒ Hash
Get a gitignore template.
Use the raw / media type to get the raw contents.
35 36 37 |
# File 'lib/octokit/client/gitignore.rb', line 35 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.
16 17 18 |
# File 'lib/octokit/client/gitignore.rb', line 16 def gitignore_templates(={}) get "/gitignore/templates", end |