summaryrefslogtreecommitdiff
path: root/lib/chef/resource/ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/ruby.rb')
-rw-r--r--lib/chef/resource/ruby.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef/resource/ruby.rb b/lib/chef/resource/ruby.rb
index 300405f89e..d7ecf5440d 100644
--- a/lib/chef/resource/ruby.rb
+++ b/lib/chef/resource/ruby.rb
@@ -26,10 +26,8 @@ class Chef
# their nature) not idempotent, as they are typically unique to the environment in which they are run. Use not_if and
# only_if to guard this resource for idempotence.
class Ruby < Chef::Resource::Script
- def initialize(name, run_context = nil)
- super
- @interpreter = "ruby"
- end
+ resource_name :ruby
+ property :interpreter, default: "ruby"
end
end
end