Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2020-11-06 10:02:41 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-11-06 10:02:41 +0300
commit3dbf25f98c86e77f7b2919633ccdf2b79af550cf (patch)
treec6ddec5ed5b0e897df5c172be070eef388d3781f /Rakefile
parent211404eaaa607e2bb4cf0be980ce0aba360f9764 (diff)
Add Rubocop to project
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index a90ae881..8e6d23a7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -145,7 +145,7 @@ namespace :release do
content.gsub!('X-Y', version.tr('.', '-'))
content.gsub!('W-Z', chart_version(version).tr('.', '-'))
- open(dockerfile, 'w') do |post|
+ File.open(dockerfile, 'w') do |post|
post.puts content
end
@@ -157,7 +157,7 @@ namespace :release do
ci_yaml_content.gsub!("BRANCH_RUNNER: 'master'", "BRANCH_RUNNER: '"+version.tr('.', '-')+"-stable'")
ci_yaml_content.gsub!("BRANCH_CHARTS: 'master'", "BRANCH_CHARTS: '"+chart_version(version).tr('.', '-')+"-stable'")
- open(ci_yaml, 'w') do |post|
+ File.open(ci_yaml, 'w') do |post|
post.puts ci_yaml_content
end