Class: GemBootstrap::GitHubHelper Private
- Inherits:
-
Object
- Object
- GemBootstrap::GitHubHelper
- Defined in:
- lib/gem-bootstrap/github_helper.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #create_repo(name:, description:, homepage:) ⇒ Object private
- #github_username ⇒ Object private
-
#initialize ⇒ GitHubHelper
constructor
private
A new instance of GitHubHelper.
Constructor Details
#initialize ⇒ GitHubHelper
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of GitHubHelper.
9 10 11 |
# File 'lib/gem-bootstrap/github_helper.rb', line 9 def initialize @octokit = Octokit::Client.new(octokit_creds) end |
Instance Method Details
#create_repo(name:, description:, homepage:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/gem-bootstrap/github_helper.rb', line 13 def create_repo(name:, description:, homepage:) @octokit.create_repository( name, description: description, homepage: homepage, private: false, has_issues: true, has_wiki: true, has_downloads: true, organization: nil, team_id: nil, auto_init: false, gitignore_template: nil ) end |
#github_username ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'lib/gem-bootstrap/github_helper.rb', line 29 def github_username @octokit.user[:login] end |