From f5b40f789d91ddab616ac61c66202d950781b983 Mon Sep 17 00:00:00 2001 From: Pete Higgins Date: Tue, 26 May 2020 16:14:09 -0700 Subject: Add an example using the input property. Signed-off-by: Pete Higgins --- lib/chef/resource/execute.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1