Module: Jeweler::Generator::GithubMixin
- Defined in:
- lib/jeweler/generator/github_mixin.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(generator) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/jeweler/generator/github_mixin.rb', line 4 def self.extended(generator) generator.github_username = generator.[:github_username] generator.should_create_remote_repo = generator.[:create_repo] raise NoGitHubUser unless generator.github_username end |
Instance Method Details
#git_remote ⇒ Object
11 12 13 |
# File 'lib/jeweler/generator/github_mixin.rb', line 11 def git_remote @git_remote ||= "[email protected]:#{github_username}/#{project_name}.git" end |
#homepage ⇒ Object
15 16 17 |
# File 'lib/jeweler/generator/github_mixin.rb', line 15 def homepage @homepage ||= "http://github.com/#{github_username}/#{project_name}" end |