Sha256: 2f48b9f375857aed7afb29f405d654817a562f1588e0c47d451da4ac34176b5c
Contents?: true
Size: 682 Bytes
Versions: 12
Compression:
Stored size: 682 Bytes
Contents
class Jeweler module Commands class InstallGem attr_accessor :gemspec_helper, :output def initialize self.output = $stdout end def run command = "#{gem_command} install #{gemspec_helper.gem_path}" output.puts "Executing #{command.inspect}:" sh command # TODO where does sh actually come from!? - rake, apparently end def gem_command Config::CONFIG['RUBY_INSTALL_NAME'].sub('ruby', 'gem') end def self.build_for(jeweler) command = new command.output = jeweler.output command.gemspec_helper = jeweler.gemspec_helper command end end end end
Version data entries
12 entries across 12 versions & 2 rubygems