| 
									
										
										
										
											2011-04-13 10:19:51 +00:00
										 |  |  | require 'rubygems' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Set up gems listed in the Gemfile. | 
					
						
							| 
									
										
										
										
											2011-07-12 08:00:57 +00:00
										 |  |  | #gemfile = File.expand_path('../../Gemfile', __FILE__) | 
					
						
							|  |  |  | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',__FILE__) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =begin | 
					
						
							| 
									
										
										
										
											2011-04-13 10:19:51 +00:00
										 |  |  |   ENV['BUNDLE_GEMFILE'] = gemfile | 
					
						
							| 
									
										
										
										
											2010-03-08 08:04:05 +00:00
										 |  |  |   require 'bundler' | 
					
						
							|  |  |  |   Bundler.setup | 
					
						
							| 
									
										
										
										
											2011-04-13 10:19:51 +00:00
										 |  |  | rescue Bundler::GemNotFound => e | 
					
						
							|  |  |  |   STDERR.puts e.message | 
					
						
							|  |  |  |   STDERR.puts "Try running `bundle install`." | 
					
						
							|  |  |  |   exit! | 
					
						
							| 
									
										
										
										
											2011-07-12 08:00:57 +00:00
										 |  |  | =end if File.exist?(gemfile) |