summaryrefslogtreecommitdiff
path: root/lib/chef/provider/script.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/script.rb')
-rw-r--r--lib/chef/provider/script.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/provider/script.rb b/lib/chef/provider/script.rb
index ea286cb0e4..e8b5235b7a 100644
--- a/lib/chef/provider/script.rb
+++ b/lib/chef/provider/script.rb
@@ -32,10 +32,13 @@ class Chef
provides :ruby
provides :script
- def_delegators :@new_resource, :code, :interpreter, :flags
+ def_delegators :@new_resource, :interpreter, :flags
+
+ attr_accessor :code
def initialize(new_resource, run_context)
super
+ self.code = new_resource.code
end
def command