Sha256: ac45f48eb7553e59b53e82984f6c09bd1fa9266ff1ed9574af39dc68afb80b98
Contents?: true
Size: 800 Bytes
Versions: 9
Compression:
Stored size: 800 Bytes
Contents
class Bueller class Generator module GithubMixin def self.extended(generator) generator.github_username = generator.options[:github_username] generator.github_token = generator.options[:github_token] generator.create_remote_repo = generator.options[:create_repo] unless generator.github_username raise NoGitHubUser end if generator.create_remote_repo? unless generator.github_token raise NoGitHubToken end end end def git_remote @git_remote ||= "git@github.com:#{github_username}/#{project_name}.git" end def homepage @homepage ||= "http://github.com/#{github_username}/#{project_name}" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems