diff options
author | Dan DeLeo <danielsdeleo@mac.com> | 2010-01-05 17:55:03 -0700 |
---|---|---|
committer | Dan DeLeo <danielsdeleo@mac.com> | 2010-01-05 17:55:03 -0700 |
commit | 76bb7802271e3c2f2148574fa46404600db50f9d (patch) | |
tree | d16c64f519fb89df9f67530cf7b13b8877e0c586 /chef | |
parent | e4b741ddec40ad152ba5f11c2132a38dd106210e (diff) | |
download | chef-76bb7802271e3c2f2148574fa46404600db50f9d.tar.gz |
install shef executable with gem install
Diffstat (limited to 'chef')
-rw-r--r-- | chef/Rakefile | 2 | ||||
-rwxr-xr-x | chef/bin/shef | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/chef/Rakefile b/chef/Rakefile index 8bdd348804..3f145d32b2 100644 --- a/chef/Rakefile +++ b/chef/Rakefile @@ -28,7 +28,7 @@ spec = Gem::Specification.new do |s| %w{mixlib-cli mixlib-log mixlib-authentication json erubis extlib amqp thor ruby-hmac deep_merge moneta}.each { |gem| s.add_dependency gem } s.bindir = "bin" - s.executables = %w( chef-client chef-solo knife ) + s.executables = %w( chef-client chef-solo knife shef ) s.require_path = 'lib' s.files = %w(LICENSE README.rdoc) + Dir.glob("{distro,lib}/**/*") end 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 |