nanliu/puppet-dism — pull request #1 by joshcooper (2012-03-29 03:01:17+00:00)
Title: Confine windows code to only execute on the agent

Previously, the puppet master would attempt to require the `win32/dir`
gem during compilation and fail. Since that gem is a dependency of
facter and puppet's, it is not necessary to explicitly require it.

This commit also wraps calls to the Windows specific `Dir` constants
in a `Puppet.features.microsoft_features?` block so that it is not
evaluated on the puppet master during catalog compilation.