Parent

Class Index [+]

Quicksearch

Jeweler::Commands::InstallGem

Attributes

gemspec_helper[RW]
output[RW]

Public Class Methods

build_for(jeweler) click to toggle source
    # File lib/jeweler/commands/install_gem.rb, line 22
22:       def self.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:       def initialize
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:       def gem_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:       def run
12:         command = "#{gem_command} install #{gemspec_helper.gem_path}"
13:         output.puts "Executing #{command.inspect}:"
14: 
15:         sh command # TODO where does sh actually come from!? - rake, apparently
16:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.