diff options
| author | Nick Thomas <nick@gitlab.com> | 2018-08-14 00:22:46 +0100 |
|---|---|---|
| committer | Nick Thomas <nick@gitlab.com> | 2018-08-14 00:22:46 +0100 |
| commit | c8bf2e7d47c3b8f34cb79847edcd5dd50b8f280e (patch) | |
| tree | cc22dc6c91f58ccaadd97fdd816159de6ec8a135 /lib/actor.rb | |
| parent | 764f6f47fa6a8698ae033532ae49875a87030518 (diff) | |
| download | gitlab-shell-c8bf2e7d47c3b8f34cb79847edcd5dd50b8f280e.tar.gz | |
Revert "Merge branch 'ash.mckenzie/srp-refactor' into 'master'"
This reverts commit 3aaf4751e09262c53544a1987f59b1308af9b6c1, reversing
changes made to c6577e0d75f51b017f2f332838b97c3ca5b497c0.
Diffstat (limited to 'lib/actor.rb')
| -rw-r--r-- | lib/actor.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/actor.rb b/lib/actor.rb deleted file mode 100644 index 4e8b3b8..0000000 --- a/lib/actor.rb +++ /dev/null @@ -1,21 +0,0 @@ -require_relative 'actor/base' -require_relative 'actor/key' -require_relative 'actor/user' -require_relative 'actor/username' - -module Actor - class UnsupportedActorError < StandardError; end - - def self.new_from(str, audit_usernames: false) - case str - when Key.id_regex - Key.from(str, audit_usernames: audit_usernames) - when User.id_regex - User.from(str, audit_usernames: audit_usernames) - when Username.id_regex - Username.from(str, audit_usernames: audit_usernames) - else - raise UnsupportedActorError - end - end -end |
