diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-05-26 16:14:09 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-05-26 16:14:14 -0700 |
commit | f5b40f789d91ddab616ac61c66202d950781b983 (patch) | |
tree | b0e28397ce7f4f4db466903648721cb9ddd56d2b /lib/chef/resource/execute.rb | |
parent | 7491610f0dea9ce2695bee936312111880571162 (diff) | |
download | chef-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.rb | 6 |
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 |