diff --git a/Rakefile b/Rakefile index a95a1b6940341891ff8f8097d2cec3939d9411af..ea2448cf5c9c929e2b4793199ba83380e1a62900 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() }