summaryrefslogtreecommitdiff
path: root/chef/bin/shef
diff options
context:
space:
mode:
Diffstat (limited to 'chef/bin/shef')
-rwxr-xr-xchef/bin/shef24
1 files changed, 24 insertions, 0 deletions
diff --git a/chef/bin/shef b/chef/bin/shef
new file mode 100755
index 0000000000..7ff3c4fb3c
--- /dev/null
+++ b/chef/bin/shef
@@ -0,0 +1,24 @@
+#!/usr/bin/env ruby
+#
+# ./chef-solo - Run the chef client, in stand-alone mode
+#
+# Author:: AJ Christensen (<aj@opscode.com>)
+# Copyright:: Copyright (c) 2008 Opscode, Inc.
+# License:: Apache License, Version 2.0
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+libdir = File.join(File.dirname(__FILE__), "..", "lib")
+init = File.join(libdir, "chef", "shef", "init.rb")
+
+exec "irb -rirb/completion -r#{libdir}/chef/shef -r#{libdir}/chef/shef/ext -r#{init}" \ No newline at end of file