From eebbc2c3a35e21a58ba24bee96a719a9692da016 Mon Sep 17 00:00:00 2001 From: Lucas Nussbaum <lucas.nussbaum@loria.fr> Date: Sat, 17 Nov 2018 00:52:54 +0100 Subject: [PATCH] [dev] cleanup --- Rakefile | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Rakefile b/Rakefile index a95a1b6940..ea2448cf5c 100644 --- a/Rakefile +++ b/Rakefile @@ -11,10 +11,6 @@ end $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib'))) require 'refrepo' -REFAPI_DIR = "./generators/reference-api" -PUPPET_DIR = "./generators/puppet" -VALIDATORS_DIR = "./generators/input-validators" - if Dir::exists?(ENV['HOME'] + '/.gpuppet/repo') PUPPET_ODIR = ENV['HOME'] + '/.gpuppet/repo' else @@ -189,17 +185,6 @@ task "reference-api" do generate_reference_api end -#Some scripts may return status != 0 (validators, errors, ...) -#Catch errors and exit properly with status 1 instead of getting Rake errors -def invoke_script(script) - puts "Running #{script} #{$CMD_ARGS}" - begin - ruby "#{script} #{$CMD_ARGS}" - rescue => e - exit 1 - end -end - #Hack rake: call only the first task and consider the rest as arguments to this task currentTask = Rake.application.top_level_tasks.first taskNames = Rake.application.tasks().map { |task| task.name() } -- GitLab