Method: Chef::Resource::Script#command
- Defined in:
- lib/chef/resource/script.rb
#command(arg = nil) ⇒ Object
FIXME: remove this and use an execute sub-resource instead of inheriting from Execute
42 43 44 45 46 47 |
# File 'lib/chef/resource/script.rb', line 42 def command(arg = nil) super unless arg.nil? raise Chef::Exceptions::Script, "Do not use the command property on a #{resource_name} resource, use the 'code' property instead." end end |