class Chef::Resource::PowershellScript

Public Class Methods

get_default_attributes() click to toggle source

Allow callers evaluating guards to request default attribute values. This is needed to allow convert_boolean_return to be true in guard context by default, and false by default otherwise. When this mode becomes the default for this resource, this method can be removed since guard context and recipe resource context will have the same behavior.

# File lib/chef/resource/powershell_script.rb, line 82
def self.get_default_attributes
  { convert_boolean_return: true }
end
new(*args) click to toggle source
Calls superclass method Chef::Resource::Script::new
# File lib/chef/resource/powershell_script.rb, line 70
def initialize(*args)
  super
  @default_guard_interpreter = resource_name
end