Skip to content

Commit

Permalink
missing doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Dec 20, 2023
1 parent 133b97b commit c0c8f53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions _plugins/gtn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ def get_version_number(page)
Gtn::ModificationTimes.obtain_modification_count(page['path'])
end

def list_usegalaxy_servers(site)
Gtn::Usegalaxy.servers.map{|x| x.transform_keys(&:to_s)}
def list_usegalaxy_servers(_site)
Gtn::Usegalaxy.servers.map { |x| x.transform_keys(&:to_s) }
end

def list_usegalaxy_servers_shuffle(site)
Gtn::Usegalaxy.servers.map{|x| x.transform_keys(&:to_s)}.shuffle
def list_usegalaxy_servers_shuffle(_site)
Gtn::Usegalaxy.servers.map { |x| x.transform_keys(&:to_s) }.shuffle
end

def topic_name_from_page(page, site)
Expand Down
3 changes: 2 additions & 1 deletion _plugins/gtn/supported.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require './_plugins/gtn/usegalaxy'

module Gtn
Expand All @@ -22,7 +23,7 @@ def self.calculate(data, tool_list)
if data.nil? || data.empty? || tool_list.empty? || tool_list.nil?
return {
'exact' => [],
'inexact' => Gtn::Usegalaxy.servers.map{|x| x['usegalaxy'] = true },
'inexact' => Gtn::Usegalaxy.servers.map { |x| x['usegalaxy'] = true },
}
end

Expand Down
10 changes: 5 additions & 5 deletions _plugins/gtn/usegalaxy.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module Gtn
# Data about the UseGalaxy.* servers
module Usegalaxy
@@SERVERS = [
{ name: 'UseGalaxy.eu', url: 'https://usegalaxy.eu', id: 'eu', human: 'Galaxy Europe'},
{ name: 'UseGalaxy.org', url: 'https://usegalaxy.org', id: 'us', human: 'Galaxy Main'},
{ name: 'UseGalaxy.org.au', url: 'https://usegalaxy.org.au', id: 'au', human: 'Galaxy Australia'},
{ name: 'UseGalaxy.fr', url: 'https://usegalaxy.fr', id: 'fr', human: 'Galaxy France'}
{ name: 'UseGalaxy.eu', url: 'https://usegalaxy.eu', id: 'eu', human: 'Galaxy Europe' },
{ name: 'UseGalaxy.org', url: 'https://usegalaxy.org', id: 'us', human: 'Galaxy Main' },
{ name: 'UseGalaxy.org.au', url: 'https://usegalaxy.org.au', id: 'au', human: 'Galaxy Australia' },
{ name: 'UseGalaxy.fr', url: 'https://usegalaxy.fr', id: 'fr', human: 'Galaxy France' }
]

def self.servers
@@SERVERS
end

end
end

0 comments on commit c0c8f53

Please sign in to comment.