```ruby
Object.new.extend(Puppet::Util::SELinux).set_selinux_context(log_directory_link, 'system_u', :seluser)
```
would be more Ruby-way