# File lib/chef/provider/group/gpasswd.rb, line 50 def add_member(member) shell_out!("gpasswd -a #{member} #{@new_resource.group_name}") end
# File lib/chef/provider/group/gpasswd.rb, line 33 def define_resource_requirements super requirements.assert(:all_actions) do |a| a.assertion { ::File.exists?("/usr/bin/gpasswd") } a.failure_message Chef::Exceptions::Group, "Could not find binary /usr/bin/gpasswd for #{@new_resource}" # No whyrun alternative: this component should be available in the base install of any given system that uses it end end
# File lib/chef/provider/group/gpasswd.rb, line 29 def load_current_resource super end
Generated with the Darkfish Rdoc Generator 2.