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:
-rw-r--r--lib/gitlab/navigation.rb2
-rw-r--r--lib/gitlab/symlinks_converter.rb2
-rw-r--r--lib/helpers/generic.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/navigation.rb b/lib/gitlab/navigation.rb
index 32071322..25281f9c 100644
--- a/lib/gitlab/navigation.rb
+++ b/lib/gitlab/navigation.rb
@@ -44,7 +44,7 @@ module Gitlab
attr_reader :items, :item
def disable_inactive_sections!
- return unless is_omnibus?
+ return unless omnibus?
children.each do |section|
section.disable! unless has_active_element?([section])
diff --git a/lib/gitlab/symlinks_converter.rb b/lib/gitlab/symlinks_converter.rb
index a7cea940..4354a4d3 100644
--- a/lib/gitlab/symlinks_converter.rb
+++ b/lib/gitlab/symlinks_converter.rb
@@ -12,7 +12,7 @@ module Gitlab
end
def run
- return unless Nanoc::Helpers::Generic.is_omnibus?
+ return unless Nanoc::Helpers::Generic.omnibus?
items.each do |item|
id = item.identifier
diff --git a/lib/helpers/generic.rb b/lib/helpers/generic.rb
index 5031745d..09c03e80 100644
--- a/lib/helpers/generic.rb
+++ b/lib/helpers/generic.rb
@@ -9,7 +9,7 @@ module Nanoc::Helpers
ENV['NANOC_ENV'] == 'production'
end
- def is_omnibus?
+ def omnibus?
ENV['NANOC_ENV'] == 'omnibus'
end
end