Sha256: 3d82ecba1e3f7b5adba0a5451bf6931f54be302c16441543150b3059884c59d2
Contents?: true
Size: 702 Bytes
Versions: 10
Compression:
Stored size: 702 Bytes
Contents
class Jeweler module Commands class InstallGem include FileUtils 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 "#{RbConfig::CONFIG['RUBY_INSTALL_NAME']} -S 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
10 entries across 10 versions & 1 rubygems