summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBryan Berry <bryan.berry@gmail.com>2012-11-22 11:52:42 +0100
committerdanielsdeleo <dan@opscode.com>2013-01-17 12:19:51 -0800
commitcb05bbb14f54325b384eaec39c90d747cfd61c54 (patch)
treeac85fead30ad0fcf803403371c0cc586942a458e /bin
parent6705514c81550024fe37f62c71d85f101637dedd (diff)
downloadchef-cb05bbb14f54325b384eaec39c90d747cfd61c54.tar.gz
CHEF-3571 add chef-recipe command
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-recipe25
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/chef-recipe b/bin/chef-recipe
new file mode 100755
index 0000000000..b50a83fe72
--- /dev/null
+++ b/bin/chef-recipe
@@ -0,0 +1,25 @@
+#!/usr/bin/env ruby
+#
+# ./chef-recipe - Run a single chef recipe, for educational purposes
+#
+# Author:: Bryan W. Berry (<bryan.berry@gmail.com>)
+# Copyright:: Copyright (c) 2012 Bryan W. Berry
+# 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.
+
+require 'rubygems'
+$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
+require 'chef/application/recipe'
+
+Chef::Application::Recipe.new.run