Class: Chef::Util::DSC::ResourceInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/util/dsc/resource_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, sets, change_log) ⇒ ResourceInfo

Returns a new instance of ResourceInfo.



13
14
15
16
17
# File 'lib/chef/util/dsc/resource_info.rb', line 13

def initialize(name, sets, change_log)
  @name = name
  @sets = sets
  @change_log = change_log || []
end

Instance Attribute Details

#change_logObject (readonly)

A list of all log messages between [Start Set] and [End Set]. Each line is an element in the list.



11
12
13
# File 'lib/chef/util/dsc/resource_info.rb', line 11

def change_log
  @change_log
end

#nameObject (readonly)

The name is the text following [Start Set]



7
8
9
# File 'lib/chef/util/dsc/resource_info.rb', line 7

def name
  @name
end

Instance Method Details

#changes_state?Boolean

Does this resource change the state of the system?

Returns:

  • (Boolean)


20
21
22
# File 'lib/chef/util/dsc/resource_info.rb', line 20

def changes_state?
  @sets
end