Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
reference-repository
Commits
eebbc2c3
Commit
eebbc2c3
authored
6 years ago
by
Lucas Nussbaum
Browse files
Options
Downloads
Patches
Plain Diff
[dev] cleanup
parent
1ac1b612
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rakefile
+0
-15
0 additions, 15 deletions
Rakefile
with
0 additions
and
15 deletions
Rakefile
+
0
−
15
View file @
eebbc2c3
...
@@ -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
()
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment