Sha256: 9b229f0d33ffb0ad8e2ce01ae83f080e45e6af9864366e7219bddd5ebd56958a
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
module Gemi class Installer def initialize(array = []) unless array.is_a? Array raise UninstalableError.new('Not an array of gems') end @gems = [] array.each { |gem| add_gem(gem) } end def add_gem(new_gem) unless new_gem.is_a? Gemi::Gem raise UninstalableError.new('Only Gemi::Gem\'s are instalable') end @gems << new_gem end def count_gems @gems.size end def run! @gems.each do |gem| if gem.native? puts "Skipped #{gem.name} because of native extensions" else puts gem.to_command puts `#{gem.to_command}` end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ktlacaelel-gemi-0.1.2 | lib/installer.rb |