lib/puppet/provider/nameservice/pw.rb in puppet-0.25.5 vs lib/puppet/provider/nameservice/pw.rb in puppet-2.6.0
- old
+ new
@@ -1,21 +1,21 @@
require 'puppet/provider/nameservice/objectadd'
class Puppet::Provider::NameService
class PW < ObjectAdd
- def deletecmd
- [command(:pw), "#{@resource.class.name.to_s}del", @resource[:name]]
- end
+ def deletecmd
+ [command(:pw), "#{@resource.class.name.to_s}del", @resource[:name]]
+ end
- def modifycmd(param, value)
- cmd = [
- command(:pw),
- "#{@resource.class.name.to_s}mod",
- @resource[:name],
- flag(param),
- value
- ]
- return cmd
- end
+ def modifycmd(param, value)
+ cmd = [
+ command(:pw),
+ "#{@resource.class.name.to_s}mod",
+ @resource[:name],
+ flag(param),
+ value
+ ]
+ cmd
+ end
end
end