diff options
Diffstat (limited to 'lib/gitlab/badge/build/metadata.rb')
-rw-r--r-- | lib/gitlab/badge/build/metadata.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/gitlab/badge/build/metadata.rb b/lib/gitlab/badge/build/metadata.rb deleted file mode 100644 index f87a7b7942e..00000000000 --- a/lib/gitlab/badge/build/metadata.rb +++ /dev/null @@ -1,28 +0,0 @@ -module Gitlab - module Badge - module Build - ## - # Class that describes build badge metadata - # - class Metadata < Badge::Metadata - def initialize(badge) - @project = badge.project - @ref = badge.ref - end - - def title - 'build status' - end - - def image_url - build_namespace_project_badges_url(@project.namespace, - @project, @ref, format: :svg) - end - - def link_url - namespace_project_commits_url(@project.namespace, @project, id: @ref) - end - end - end - end -end |