Class: Chef::Util::DSC::ResourceInfo
- Inherits:
-
Object
- Object
- Chef::Util::DSC::ResourceInfo
- Defined in:
- lib/chef/util/dsc/resource_info.rb
Instance Attribute Summary collapse
-
#change_log ⇒ Object
readonly
A list of all log messages between [Start Set] and [End Set].
-
#name ⇒ Object
readonly
The name is the text following [Start Set].
Instance Method Summary collapse
-
#changes_state? ⇒ Boolean
Does this resource change the state of the system?.
-
#initialize(name, sets, change_log) ⇒ ResourceInfo
constructor
A new instance of ResourceInfo.
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_log ⇒ Object (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 |
#name ⇒ Object (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?
20 21 22 |
# File 'lib/chef/util/dsc/resource_info.rb', line 20 def changes_state? @sets end |