summaryrefslogtreecommitdiff
path: root/chef/bin
diff options
context:
space:
mode:
authorDan DeLeo <danielsdeleo@mac.com>2010-01-05 17:55:03 -0700
committerDan DeLeo <danielsdeleo@mac.com>2010-01-05 17:55:03 -0700
commit76bb7802271e3c2f2148574fa46404600db50f9d (patch)
treed16c64f519fb89df9f67530cf7b13b8877e0c586 /chef/bin
parente4b741ddec40ad152ba5f11c2132a38dd106210e (diff)
downloadchef-76bb7802271e3c2f2148574fa46404600db50f9d.tar.gz
install shef executable with gem install
Diffstat (limited to 'chef/bin')
-rwxr-xr-xchef/bin/shef6
1 files changed, 5 insertions, 1 deletions
diff --git a/chef/bin/shef b/chef/bin/shef
index de5dea04d9..3d215488d6 100755
--- a/chef/bin/shef
+++ b/chef/bin/shef
@@ -26,7 +26,11 @@ require "irb"
require "irb/completion"
# TODO::EVIL
-require "#{File.dirname(__FILE__)}/../lib/chef"
+begin
+ require "#{File.dirname(__FILE__)}/../lib/chef"
+rescue LoadError
+ # the bin got moved, e.g., by rubygems
+end
require "chef/shef"
# dirty hack to make IRB initialize shef