Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 24 lines (20 sloc) 0.616 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
module Sprinkle
  module Installers
    class Gem < Installer
      def initialize(parent, gem, &block)
        super parent, &block
        @gem = gem
      end
      
      protected
      
        # rubygems 0.9.5+ installs dependencies by default, and does platform selection
        # REVISIT: assume yes? how do we handle multiple versions? install version specified in the package if available
        
        def install_sequence
          unless version
            ["gem install #{@gem}"]
          else
            ["gem install #{@gem} --version #{version}"]
          end
        end
    end
  end
end
Something went wrong with that request. Please try again.