Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/integrations/shimo.rb')
-rw-r--r--app/models/integrations/shimo.rb39
1 files changed, 0 insertions, 39 deletions
diff --git a/app/models/integrations/shimo.rb b/app/models/integrations/shimo.rb
deleted file mode 100644
index 1d004356469..00000000000
--- a/app/models/integrations/shimo.rb
+++ /dev/null
@@ -1,39 +0,0 @@
-# frozen_string_literal: true
-
-module Integrations
- class Shimo < BaseThirdPartyWiki
- validates :external_wiki_url, presence: true, public_url: true, if: :activated?
-
- field :external_wiki_url,
- title: -> { s_('Shimo|Shimo Workspace URL') },
- required: true
-
- def avatar_url
- ActionController::Base.helpers.image_path('logos/shimo.svg')
- end
-
- def render?
- valid? && activated?
- end
-
- def self.title
- s_('Shimo|Shimo')
- end
-
- def self.description
- s_('Shimo|Link to a Shimo Workspace from the sidebar.')
- end
-
- def self.to_param
- 'shimo'
- end
-
- # support for `test` method
- def execute(_data)
- response = Gitlab::HTTP.get(properties['external_wiki_url'], verify: true)
- response.body if response.code == 200
- rescue StandardError
- nil
- end
- end
-end