summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/group
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-06 19:23:11 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-06 19:23:11 +0000
commitdb0ffc7559d727fbfede9079f51e41031b900a89 (patch)
tree4ab36d8251424cdfafd002c4bc163e520ac5489a /lib/puppet/provider/group
parent5e419cf750dc1ac9572616b7318d7501d9d366ed (diff)
downloadpuppet-db0ffc7559d727fbfede9079f51e41031b900a89.tar.gz
puppet-db0ffc7559d727fbfede9079f51e41031b900a89.tar.xz
puppet-db0ffc7559d727fbfede9079f51e41031b900a89.zip
Copying the "commands" and "confine" statements to the actual dscl providers, since they need to be there to determine where the providers are suitable. Otherwise base classes could unnecessarily affect how subclasses work.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2751 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/provider/group')
-rw-r--r--lib/puppet/provider/group/directoryservice.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/puppet/provider/group/directoryservice.rb b/lib/puppet/provider/group/directoryservice.rb
index e92ef254a..406622224 100644
--- a/lib/puppet/provider/group/directoryservice.rb
+++ b/lib/puppet/provider/group/directoryservice.rb
@@ -15,10 +15,9 @@
require 'puppet/provider/nameservice/directoryservice'
Puppet::Type.type(:group).provide :directoryservice, :parent => Puppet::Provider::NameService::DirectoryService do
- desc "Group management using DirectoryService ... Fin. ;)"
-
- # JJM: Do we really need commands defined here?
- # commands :dscl => "/usr/bin/dscl"
- # defaultfor :operatingsystem => :darwin
+ desc "Group management using DirectoryService on OS X."
+ commands :dscl => "/usr/bin/dscl"
+ confine :operatingsystem => :darwin
+ #defaultfor :operatingsystem => :darwin
end