Why not just run the block as an instance_exec against the provider object?