Sha256: 29655adfaf3544da3345846d716036873caf401ae556eccafa5a2e504580ad63

Contents?: true

Size: 674 Bytes

Versions: 65

Compression:

Stored size: 674 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']} -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

65 entries across 38 versions & 2 rubygems

Version Path
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb