summaryrefslogtreecommitdiff
path: root/lib/chef/resource/execute.rb
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-05-26 16:14:09 -0700
committerPete Higgins <pete@peterhiggins.org>2020-05-26 16:14:14 -0700
commitf5b40f789d91ddab616ac61c66202d950781b983 (patch)
treeb0e28397ce7f4f4db466903648721cb9ddd56d2b /lib/chef/resource/execute.rb
parent7491610f0dea9ce2695bee936312111880571162 (diff)
downloadchef-f5b40f789d91ddab616ac61c66202d950781b983.tar.gz
Add an example using the input property.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/resource/execute.rb')
-rw-r--r--lib/chef/resource/execute.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb
index 18d652a1f2..b09401e57a 100644
--- a/lib/chef/resource/execute.rb
+++ b/lib/chef/resource/execute.rb
@@ -556,6 +556,12 @@ class Chef
password "password"
end
```
+
+ **Run a command with an external input file**:
+
+ execute 'md5sum' do
+ input File.read(__FILE__)
+ end
EXAMPLES
# The ResourceGuardInterpreter wraps a resource's guards in another resource. That inner resource