Mentions légales du service

Skip to content
Snippets Groups Projects
Commit eebbc2c3 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] cleanup

parent 1ac1b612
No related branches found
No related tags found
No related merge requests found
...@@ -11,10 +11,6 @@ end ...@@ -11,10 +11,6 @@ end
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib'))) $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
require 'refrepo' require 'refrepo'
REFAPI_DIR = "./generators/reference-api"
PUPPET_DIR = "./generators/puppet"
VALIDATORS_DIR = "./generators/input-validators"
if Dir::exists?(ENV['HOME'] + '/.gpuppet/repo') if Dir::exists?(ENV['HOME'] + '/.gpuppet/repo')
PUPPET_ODIR = ENV['HOME'] + '/.gpuppet/repo' PUPPET_ODIR = ENV['HOME'] + '/.gpuppet/repo'
else else
...@@ -189,17 +185,6 @@ task "reference-api" do ...@@ -189,17 +185,6 @@ task "reference-api" do
generate_reference_api generate_reference_api
end 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 #Hack rake: call only the first task and consider the rest as arguments to this task
currentTask = Rake.application.top_level_tasks.first currentTask = Rake.application.top_level_tasks.first
taskNames = Rake.application.tasks().map { |task| task.name() } taskNames = Rake.application.tasks().map { |task| task.name() }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment