class Chef::Resource::Script

Public Class Methods

new(name, run_context = nil) click to toggle source
Calls superclass method Chef::Resource::Execute::new
# File lib/chef/resource/script.rb, line 35
def initialize(name, run_context = nil)
  super
  @command = nil
  @default_guard_interpreter = :default
end

Public Instance Methods

command(arg = nil) click to toggle source

FIXME: remove this and use an execute sub-resource instead of inheriting from Execute

Calls superclass method
# 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