Class: Chef::ResourceCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/provisioning/recipe_dsl.rb

Instance Method Summary collapse

Instance Method Details

#previous_indexObject



95
96
97
# File 'lib/chef/provisioning/recipe_dsl.rb', line 95

def previous_index
  @insert_after_idx ? @insert_after_idx : @resources.length - 1
end