summaryrefslogtreecommitdiff
path: root/chef/bin
diff options
context:
space:
mode:
authorDan DeLeo <danielsdeleo@mac.com>2009-11-09 21:00:42 -0700
committerDan DeLeo <danielsdeleo@mac.com>2009-11-09 21:03:14 -0700
commitcae17ff59ee1ccfabbb338de39e6ccac13693f15 (patch)
treed1ccd4dec0c32f3caf5e50786906f8c1be869a2f /chef/bin
parente900e68f04d7b4d0551322796eecd3041b28a2a2 (diff)
downloadchef-cae17ff59ee1ccfabbb338de39e6ccac13693f15.tar.gz
[CHEF-687] initial shef import
Diffstat (limited to 'chef/bin')
-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