aws/aws-sdk-ruby — pull request #569 by sunkev (2014-06-29 02:50:04+00:00)
Title: Allow arguments in bucket.lifecycle_configuration.update

Allows user to optionally pass in variables to lifecycle.update through arguments by changing instance_eval to instance_exec.

Example

@keep_days = 30
bucket.lifecycle_configuration.update({keep_days: @keep_days}) do |args|
add_rule 'bar/foo', 11, expiration_time: args[:keep_days]
end