summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-02-22 17:01:54 +0000
committerThom May <thom@chef.io>2018-03-05 18:44:36 +0000
commit2d079d88709370d13883b6e1c9f55f3ff43e9a2f (patch)
treec9db2b94f1d2410c5bf22d1234801611cf37b7a6 /bin
parente91fe995f8e93788f98ff32e1df4c0789b1a5a2a (diff)
downloadchef-2d079d88709370d13883b6e1c9f55f3ff43e9a2f.tar.gz
add a utility to dump info about resourcestm/resource_inspector
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-resource-inspector26
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/chef-resource-inspector b/bin/chef-resource-inspector
new file mode 100755
index 0000000000..6a7eac0c32
--- /dev/null
+++ b/bin/chef-resource-inspector
@@ -0,0 +1,26 @@
+#!/usr/bin/env ruby
+#
+# ./chef-resource-inspector - Find information about a resource
+#
+# Copyright:: Copyright (c) 2018, Chef Software, 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.
+
+Encoding.default_external = Encoding::UTF_8
+
+$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
+
+require "chef/resource_inspector"
+
+ResourceInspector.start