Work around Ruby scoping

- @new_resource is not available inside of a resource's block because
  the context is that of the resource class.