mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	rails: detect gems.rb in _rake_command (#8223)
This commit is contained in:
		
				
					committed by
					
						
						Marc Cornellà
					
				
			
			
				
	
			
			
			
						parent
						
							6b6f2b6dfd
						
					
				
				
					commit
					74165aba4a
				
			@@ -17,7 +17,7 @@ function _rake_command () {
 | 
			
		||||
    bin/stubs/rake $@
 | 
			
		||||
  elif [ -e "bin/rake" ]; then
 | 
			
		||||
    bin/rake $@
 | 
			
		||||
  elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
 | 
			
		||||
  elif type bundle &> /dev/null && ([ -e "Gemfile" ] || [ -e "gems.rb" ]); then
 | 
			
		||||
    bundle exec rake $@
 | 
			
		||||
  else
 | 
			
		||||
    command rake $@
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user