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


99
100
101
# File 'lib/chef/provisioning/recipe_dsl.rb', line 99

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