class Chef::Resource::Script
Public Class Methods
Source
# File lib/chef/resource/script.rb, line 35 def initialize(name, run_context = nil) super @command = nil @default_guard_interpreter = :default end
Calls superclass method
Chef::Resource::Execute::new
Public Instance Methods
Source
# 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
FIXME: remove this and use an execute sub-resource instead of inheriting from Execute
Calls superclass method