Object
# File lib/jeweler/generator/application.rb, line 5 5: def run!(*arguments) 6: env_opts = if ENV['JEWELER_OPTS'] 7: Jeweler::Generator::Options.new(ENV['JEWELER_OPTS'].split(' ')) 8: end 9: options = Jeweler::Generator::Options.new(arguments) 10: options = options.merge(env_opts) if env_opts 11: 12: if options[:invalid_argument] 13: $stderr.puts options[:invalid_argument] 14: options[:show_help] = true 15: end 16: 17: if options[:show_help] 18: $stderr.puts options.opts 19: return 1 20: end 21: 22: if options[:project_name].nil? || options[:project_name].squeeze.strip == "" 23: $stderr.puts options.opts 24: return 1 25: end 26: 27: begin 28: generator = Jeweler::Generator.new(options) 29: generator.run 30: return 0 31: rescue Jeweler::NoGitUserName 32: $stderr.puts %{No user.name found in ~/.gitconfig. Please tell git about yourself (see http://help.github.com/git-email-settings/ for details). For example: git config --global user.name "mad voo"} 33: return 1 34: rescue Jeweler::NoGitUserEmail 35: $stderr.puts %{No user.email found in ~/.gitconfig. Please tell git about yourself (see http://help.github.com/git-email-settings/ for details). For example: git config --global user.email mad.vooo@gmail.com} 36: return 1 37: rescue Jeweler::NoGitHubUser 38: $stderr.puts %{No github.user found in ~/.gitconfig. Please tell git about your GitHub account (see http://github.com/blog/180-local-github-config for details). For example: git config --global github.user defunkt} 39: return 1 40: rescue Jeweler::NoGitHubToken 41: $stderr.puts %{No github.token found in ~/.gitconfig. Please tell git about your GitHub account (see http://github.com/blog/180-local-github-config for details). For example: git config --global github.token 6ef8395fecf207165f1a82178ae1b984} 42: return 1 43: rescue Jeweler::FileInTheWay 44: $stderr.puts "The directory #{options[:project_name]} already exists. Maybe move it out of the way before continuing?" 45: return 1 46: end 47: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.