module Jeweler::Generator::GithubMixin
Public Class Methods
extended(generator)
click to toggle source
# File lib/jeweler/generator/github_mixin.rb, line 4 def self.extended(generator) generator.github_username = generator.options[:github_username] generator.should_create_remote_repo = generator.options[:create_repo] raise NoGitHubUser unless generator.github_username end
Public Instance Methods
git_remote()
click to toggle source
# File lib/jeweler/generator/github_mixin.rb, line 11 def git_remote @git_remote ||= "git@github.com:#{github_username}/#{project_name}.git" end
homepage()
click to toggle source
# File lib/jeweler/generator/github_mixin.rb, line 15 def homepage @homepage ||= "http://github.com/#{github_username}/#{project_name}" end