BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
f39a7af0
Commit
f39a7af0
authored
Apr 17, 2018
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .org? method to Gitlab helper
dev_env_or_com? now considers dev.gitlab.org
parent
08083f43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gitlab.rb
lib/gitlab.rb
+5
-1
No files found.
lib/gitlab.rb
View file @
f39a7af0
...
@@ -10,11 +10,15 @@ module Gitlab
...
@@ -10,11 +10,15 @@ module Gitlab
Gitlab
.
config
.
gitlab
.
url
==
COM_URL
||
gl_subdomain?
Gitlab
.
config
.
gitlab
.
url
==
COM_URL
||
gl_subdomain?
end
end
def
self
.
org?
Gitlab
.
config
.
gitlab
.
url
==
'https://dev.gitlab.org'
end
def
self
.
gl_subdomain?
def
self
.
gl_subdomain?
SUBDOMAIN_REGEX
===
Gitlab
.
config
.
gitlab
.
url
SUBDOMAIN_REGEX
===
Gitlab
.
config
.
gitlab
.
url
end
end
def
self
.
dev_env_or_com?
def
self
.
dev_env_or_com?
Rails
.
env
.
test?
||
Rails
.
env
.
development?
||
com?
Rails
.
env
.
test?
||
Rails
.
env
.
development?
||
org?
||
com?
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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