Declare missing methods in update.rb
This commit is contained in:
10
update.rb
10
update.rb
@@ -129,19 +129,21 @@ def get_releases(product, config, i)
|
|||||||
return get_releases_from_git(dir, config)
|
return get_releases_from_git(dir, config)
|
||||||
elsif type == 'dockerhub'
|
elsif type == 'dockerhub'
|
||||||
return get_releases_from_dockerhub(config)
|
return get_releases_from_dockerhub(config)
|
||||||
elsif type == 'custom'
|
elsif type != nil
|
||||||
puts "Custom script, skipping"
|
puts "Handled by #{type} script, skipping"
|
||||||
return {}
|
return {}
|
||||||
else
|
else
|
||||||
puts "Not implemented: #{type}"
|
puts "Undetected method for #{product}"
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_update_type(config)
|
def get_update_type(config)
|
||||||
for i in ['git', 'oci', 'npm', 'dockerhub', 'custom']
|
for i in ['git', 'npm', 'dockerhub', 'distrowatch', 'custom', 'github_releases', 'pypi', 'maven']
|
||||||
return i if config[i]
|
return i if config[i]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.glob("#{WEBSITE_DIR}/products/*.md").each do |product_file|
|
Dir.glob("#{WEBSITE_DIR}/products/*.md").each do |product_file|
|
||||||
|
|||||||
Reference in New Issue
Block a user