lib/chef/provider/user/dscl.rb
#
# Sets the shell for the user using dscl.
#
Sets the shell for the user using dscl.
Sets the shell for the user using dscl .
def dscl_set_shell
          if @new_resource.shell || ::File.exists?("#{@new_resource.shell}")
            run_dscl("create /Users/#{@new_resource.username} UserShell '#{@new_resource.shell}'")
          else
            run_dscl("create /Users/#{@new_resource.username} UserShell '/usr/bin/false'")
          end
        end
def dscl_set_shell if @new_resource . shell || :: File . exists? ( "#{@new_resource.shell}" ) run_dscl ( "create /Users/#{@new_resource.username} UserShell '#{@new_resource.shell}'" ) else run_dscl ( "create /Users/#{@new_resource.username} UserShell '/usr/bin/false'" ) end end
Sets the shell for the user using dscl.
Sets the shell for the user using dscl .