# File lib/jeweler/commands/install_gem.rb, line 22
22: defself.build_for(jeweler)
23: command = new
24: command.output = jeweler.output
25: command.gemspec_helper = jeweler.gemspec_helper
26: command
27: end
new()click to toggle source
# File lib/jeweler/commands/install_gem.rb, line 6
6: definitialize
7: self.output = $stdout
8: end
Public Instance Methods
gem_command()click to toggle source
# File lib/jeweler/commands/install_gem.rb, line 18
18: defgem_command
19: Config::CONFIG['RUBY_INSTALL_NAME'].sub('ruby', 'gem')
20: end
run()click to toggle source
# File lib/jeweler/commands/install_gem.rb, line 11
11: defrun
12: command = "#{gem_command} install #{gemspec_helper.gem_path}"
13: output.puts"Executing #{command.inspect}:"
14:
15: shcommand# TODO where does sh actually come from!? - rake, apparently
16: end