summaryrefslogtreecommitdiff
path: root/lib/chef/provider/script.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-03-02 16:05:50 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2020-03-02 16:05:50 -0800
commit812fcb568e06afdcdaad5d624c97b666a43a65b1 (patch)
treead8b78eb755684239cfa8d5724b0fd3ad204d415 /lib/chef/provider/script.rb
parent36a727691ea93d1f5fe8cf267fae5dd92516a9f0 (diff)
downloadchef-812fcb568e06afdcdaad5d624c97b666a43a65b1.tar.gz
Use the action DSL consistently
May be a potentially breaking change if I noodle hard enough on it, it does mean that all the actions are now (correctly) encapsulated in a sub-resource collection, whereas before they never had one. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/script.rb')
-rw-r--r--lib/chef/provider/script.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/script.rb b/lib/chef/provider/script.rb
index 6124615eaa..ee689ad615 100644
--- a/lib/chef/provider/script.rb
+++ b/lib/chef/provider/script.rb
@@ -1,6 +1,6 @@
#
# Author:: Adam Jacob (<adam@chef.io>)
-# Copyright:: Copyright 2008-2019, Chef Software Inc.
+# Copyright:: Copyright 2008-2020, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -51,13 +51,13 @@ class Chef
super
end
- def action_run
+ action :run do
script_file.puts(code)
script_file.close
set_owner_and_group
- super
+ super()
unlink_script_file
end