class Bundler::Dsl
Public Instance Methods
gem(nm_gem, opt_gem = {})
click to toggle source
# File lib/development.rb, line 8 def gem(nm_gem, opt_gem = {}) shome = File.expand_path('../..', __FILE__) gem_info = File.join(shome, ".local", nm_gem) if File.exists? gem_info source "http://localhost:9292" local_opt = { :path => File.read(gem_info).strip } unless local_opt[:path].empty? gex nm_gem, local_opt else gex nm_gem, opt_gem.clone end else gex nm_gem, opt_gem.clone end end
Also aliased as: gex