diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-08-03 20:08:13 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-08-03 20:08:13 +0900 |
commit | 41f28a9ffabf4eb45c53836ea4de3b7a49229eaa (patch) | |
tree | 174d41cf6bb28ccc3c88727618886a431364a63c /lib/gitlab/ci/parsers.rb | |
parent | 06b8f47cf3b8ce65012fe905f6d3953ff175fa85 (diff) | |
download | gitlab-ce-41f28a9ffabf4eb45c53836ea4de3b7a49229eaa.tar.gz |
Add factory for parsers. Add required specification in json schema matcher. Improved test code.
Diffstat (limited to 'lib/gitlab/ci/parsers.rb')
-rw-r--r-- | lib/gitlab/ci/parsers.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/ci/parsers.rb b/lib/gitlab/ci/parsers.rb new file mode 100644 index 00000000000..a4eccc08dfc --- /dev/null +++ b/lib/gitlab/ci/parsers.rb @@ -0,0 +1,9 @@ +module Gitlab + module Ci + module Parsers + def self.fabricate!(file_type) + "Gitlab::Ci::Parsers::#{file_type.classify}".constantize.new + end + end + end +end |