Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit ab0ccb17 authored by Lucas Nussbaum's avatar Lucas Nussbaum

[dev] update Rakefile for homogeneity validator

parent 57615f41
......@@ -3,6 +3,11 @@ if ENV['COV']
SimpleCov.start
end
if RUBY_VERSION < "2.1"
puts "This script requires ruby >= 2.1"
exit
end
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
require 'refrepo'
......@@ -30,9 +35,24 @@ end
namespace :valid do
desc "Check homogeneity of clusters"
desc "Check homogeneity of clusters -- parameters: SITE={grenoble,..} CLUSTER={yeti,..} VERBOSE=1"
task "homogeneity" do
invoke_script "#{VALIDATORS_DIR}/check-cluster-homogeneity.rb"
require 'refrepo/valid/homogeneity'
options = {}
if ENV['SITE']
options[:sites] = ENV['SITE'].split(',')
else
options[:sites] = G5K_SITES
end
if ENV['CLUSTER']
options[:clusters] = ENV['CLUSTER'].split(',')
else
options[:clusters] = []
end
options[:verbose] = ENV['VERBOSE'].to_i if ENV['VERBOSE']
ret = check_cluster_homogeneity(options)
exit(ret)
end
desc "Check input data schema validity"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment