Class Chef::RunList
In: lib/chef/run_list/run_list_expansion.rb
lib/chef/run_list/run_list_item.rb
lib/chef/run_list.rb
Parent: Object

Methods

<<   ==   []   []=   each   each_index   empty?   expand   expansion_for_data_source   include?   new   parse_entry   recipe_names   recipes   remove   reset!   role_names   roles   to_s  

Included Modules

Enumerable

Classes and Modules

Class Chef::RunList::RunListExpansion
Class Chef::RunList::RunListExpansionFromAPI
Class Chef::RunList::RunListExpansionFromCouchDB
Class Chef::RunList::RunListExpansionFromDisk
Class Chef::RunList::RunListItem

External Aliases

run_list_items -> run_list
  For backwards compat

Attributes

run_list_items  [R]  @run_list_items is an array of RunListItems that describe the items to execute in order. RunListItems can load from and convert to the string forms users set on roles and nodes. For example:
  @run_list_items = ['recipe[foo::bar]', 'role[webserver]']

Thus,

  self.role_names would return ['webserver']
  self.recipe_names would return ['foo::bar']

Public Class methods

Public Instance methods

Add an item of the form "recipe[foo::bar]" or "role[webserver]"; takes a String or a RunListItem

Converts a string run list entry to a RunListItem object. TODO: 5/27/2010 cw: this method has become nothing more than a proxy, revisit its necessity

recipes()

Alias for recipe_names

roles()

Alias for role_names

[Validate]