Class Index [+]

Quicksearch

Jeweler::Generator::GithubMixin

Public Class Methods

extended(generator) click to toggle source
    # File lib/jeweler/generator/github_mixin.rb, line 4
 4:       def self.extended(generator)
 5:         generator.github_username           = generator.options[:github_username]
 6:         generator.github_token              = generator.options[:github_token]
 7:         generator.should_create_remote_repo = generator.options[:create_repo]
 8: 
 9:         unless generator.github_username
10:           raise NoGitHubUser
11:         end
12:         
13:         if generator.should_create_remote_repo
14:           unless generator.github_token
15:             raise NoGitHubToken
16:           end
17:         end
18:       end

Public Instance Methods

git_remote() click to toggle source
    # File lib/jeweler/generator/github_mixin.rb, line 20
20:       def git_remote
21:         @git_remote ||= "git@github.com:#{github_username}/#{project_name}.git"
22:       end
homepage() click to toggle source
    # File lib/jeweler/generator/github_mixin.rb, line 24
24:       def homepage
25:         @homepage ||= "http://github.com/#{github_username}/#{project_name}"
26:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.