lib/gitauth/user.rb in brownbeagle-gitauth-0.0.4.1 vs lib/gitauth/user.rb in brownbeagle-gitauth-0.0.4.2

- old
+ new

@@ -17,13 +17,14 @@ #++ module GitAuth class User < SaveableClass(:users) - + include GitAuth::Loggable + def self.get(name) - GitAuth::Logger.debug "Getting user for the name '#{name}'" + logger.debug "Getting user for the name '#{name}'" (all || []).detect { |r| r.name == name } end def self.create(name, admin, key) # Basic sanity checking @@ -107,13 +108,13 @@ end def can_execute?(command, repo) return if command.bad? if command.write? - GitAuth::Logger.debug "Checking if #{self.name} can push to #{repo.name}" + logger.debug "Checking if #{self.name} can push to #{repo.name}" pushable?(repo) else - GitAuth::Logger.debug "Checking if #{self.name} can pull from #{repo.name}" + logger.debug "Checking if #{self.name} can pull from #{repo.name}" pullable?(repo) end end def self.clean_ssh_key(key) \ No newline at end of file