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
c295d336
Unverified
Commit
c295d336
authored
Sep 06, 2017
by
Maxim Rydkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb`
parent
f364cc34
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
20 additions
and
18 deletions
+20
-18
group_variable.rb
app/models/ci/group_variable.rb
+1
-1
pipeline.rb
app/models/ci/pipeline.rb
+1
-1
pipeline_schedule.rb
app/models/ci/pipeline_schedule.rb
+1
-1
pipeline_schedule_variable.rb
app/models/ci/pipeline_schedule_variable.rb
+1
-1
pipeline_variable.rb
app/models/ci/pipeline_variable.rb
+1
-1
runner.rb
app/models/ci/runner.rb
+1
-1
runner_project.rb
app/models/ci/runner_project.rb
+1
-1
stage.rb
app/models/ci/stage.rb
+1
-1
trigger.rb
app/models/ci/trigger.rb
+1
-1
trigger_request.rb
app/models/ci/trigger_request.rb
+1
-1
variable.rb
app/models/ci/variable.rb
+1
-1
model.rb
lib/gitlab/ci/model.rb
+9
-7
No files found.
app/models/ci/group_variable.rb
View file @
c295d336
module
Ci
class
GroupVariable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
include
Presentable
...
...
app/models/ci/pipeline.rb
View file @
c295d336
module
Ci
class
Pipeline
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasStatus
include
Importable
include
AfterCommitQueue
...
...
app/models/ci/pipeline_schedule.rb
View file @
c295d336
module
Ci
class
PipelineSchedule
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
Importable
acts_as_paranoid
...
...
app/models/ci/pipeline_schedule_variable.rb
View file @
c295d336
module
Ci
class
PipelineScheduleVariable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
belongs_to
:pipeline_schedule
...
...
app/models/ci/pipeline_variable.rb
View file @
c295d336
module
Ci
class
PipelineVariable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
belongs_to
:pipeline
...
...
app/models/ci/runner.rb
View file @
c295d336
module
Ci
class
Runner
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
RUNNER_QUEUE_EXPIRY_TIME
=
60
.
minutes
ONLINE_CONTACT_TIMEOUT
=
1
.
hour
...
...
app/models/ci/runner_project.rb
View file @
c295d336
module
Ci
class
RunnerProject
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
belongs_to
:runner
belongs_to
:project
...
...
app/models/ci/stage.rb
View file @
c295d336
module
Ci
class
Stage
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
Importable
include
HasStatus
include
Gitlab
::
OptimisticLocking
...
...
app/models/ci/trigger.rb
View file @
c295d336
module
Ci
class
Trigger
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
acts_as_paranoid
...
...
app/models/ci/trigger_request.rb
View file @
c295d336
module
Ci
class
TriggerRequest
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
belongs_to
:trigger
belongs_to
:pipeline
,
foreign_key: :commit_id
...
...
app/models/ci/variable.rb
View file @
c295d336
module
Ci
class
Variable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
include
Presentable
...
...
lib/ci/model.rb
→
lib/
gitlab/
ci/model.rb
View file @
c295d336
module
Ci
module
Model
def
table_name_prefix
"ci_"
end
module
Gitlab
module
Ci
module
Model
def
table_name_prefix
"ci_"
end
def
model_name
@model_name
||=
ActiveModel
::
Name
.
new
(
self
,
nil
,
self
.
name
.
split
(
"::"
).
last
)
def
model_name
@model_name
||=
ActiveModel
::
Name
.
new
(
self
,
nil
,
self
.
name
.
split
(
"::"
).
last
)
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