diff --git a/lib/puppet/feature/windows.rb b/lib/puppet/feature/windows.rb
new file mode 100644
index 0000000..d5e4f38
--- /dev/null
+++ b/lib/puppet/feature/windows.rb
@@ -0,0 +1,16 @@
+require 'puppet/util/feature'
+
+Puppet.features.add(:windows) do
+    result = false
+
+    if Facter.operatingsystem == 'windows'
+        begin
+            require 'win32ole'
+            require 'Win32API'
+            result = true
+        rescue
+        end
+    end
+
+    result
+end

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to