Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
eebbc2c3
Commit
eebbc2c3
authored
Nov 17, 2018
by
Lucas Nussbaum
Browse files
[dev] cleanup
parent
1ac1b612
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rakefile
View file @
eebbc2c3
...
...
@@ -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
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment