module Jeweler::Generator::GithubMixin
def self.extended(generator)
def self.extended(generator) generator.github_username = generator.options[:github_username] generator.github_token = generator.options[:github_token] generator.should_create_remote_repo = generator.options[:create_repo] unless generator.github_username raise NoGitHubUser end if generator.should_create_remote_repo unless generator.github_token raise NoGitHubToken end end end