Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
c295d336
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
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
24 additions
and
22 deletions
+24
-22
app/models/ci/group_variable.rb
app/models/ci/group_variable.rb
+1
-1
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+1
-1
app/models/ci/pipeline_schedule.rb
app/models/ci/pipeline_schedule.rb
+1
-1
app/models/ci/pipeline_schedule_variable.rb
app/models/ci/pipeline_schedule_variable.rb
+1
-1
app/models/ci/pipeline_variable.rb
app/models/ci/pipeline_variable.rb
+1
-1
app/models/ci/runner.rb
app/models/ci/runner.rb
+1
-1
app/models/ci/runner_project.rb
app/models/ci/runner_project.rb
+1
-1
app/models/ci/stage.rb
app/models/ci/stage.rb
+1
-1
app/models/ci/trigger.rb
app/models/ci/trigger.rb
+1
-1
app/models/ci/trigger_request.rb
app/models/ci/trigger_request.rb
+1
-1
app/models/ci/variable.rb
app/models/ci/variable.rb
+1
-1
lib/ci/model.rb
lib/ci/model.rb
+0
-11
lib/gitlab/ci/model.rb
lib/gitlab/ci/model.rb
+13
-0
No files found.
app/models/ci/group_variable.rb
View file @
c295d336
module
Ci
module
Ci
class
GroupVariable
<
ActiveRecord
::
Base
class
GroupVariable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
include
HasVariable
include
Presentable
include
Presentable
...
...
app/models/ci/pipeline.rb
View file @
c295d336
module
Ci
module
Ci
class
Pipeline
<
ActiveRecord
::
Base
class
Pipeline
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasStatus
include
HasStatus
include
Importable
include
Importable
include
AfterCommitQueue
include
AfterCommitQueue
...
...
app/models/ci/pipeline_schedule.rb
View file @
c295d336
module
Ci
module
Ci
class
PipelineSchedule
<
ActiveRecord
::
Base
class
PipelineSchedule
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
Importable
include
Importable
acts_as_paranoid
acts_as_paranoid
...
...
app/models/ci/pipeline_schedule_variable.rb
View file @
c295d336
module
Ci
module
Ci
class
PipelineScheduleVariable
<
ActiveRecord
::
Base
class
PipelineScheduleVariable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
include
HasVariable
belongs_to
:pipeline_schedule
belongs_to
:pipeline_schedule
...
...
app/models/ci/pipeline_variable.rb
View file @
c295d336
module
Ci
module
Ci
class
PipelineVariable
<
ActiveRecord
::
Base
class
PipelineVariable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
include
HasVariable
belongs_to
:pipeline
belongs_to
:pipeline
...
...
app/models/ci/runner.rb
View file @
c295d336
module
Ci
module
Ci
class
Runner
<
ActiveRecord
::
Base
class
Runner
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
RUNNER_QUEUE_EXPIRY_TIME
=
60
.
minutes
RUNNER_QUEUE_EXPIRY_TIME
=
60
.
minutes
ONLINE_CONTACT_TIMEOUT
=
1
.
hour
ONLINE_CONTACT_TIMEOUT
=
1
.
hour
...
...
app/models/ci/runner_project.rb
View file @
c295d336
module
Ci
module
Ci
class
RunnerProject
<
ActiveRecord
::
Base
class
RunnerProject
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
belongs_to
:runner
belongs_to
:runner
belongs_to
:project
belongs_to
:project
...
...
app/models/ci/stage.rb
View file @
c295d336
module
Ci
module
Ci
class
Stage
<
ActiveRecord
::
Base
class
Stage
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
Importable
include
Importable
include
HasStatus
include
HasStatus
include
Gitlab
::
OptimisticLocking
include
Gitlab
::
OptimisticLocking
...
...
app/models/ci/trigger.rb
View file @
c295d336
module
Ci
module
Ci
class
Trigger
<
ActiveRecord
::
Base
class
Trigger
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
acts_as_paranoid
acts_as_paranoid
...
...
app/models/ci/trigger_request.rb
View file @
c295d336
module
Ci
module
Ci
class
TriggerRequest
<
ActiveRecord
::
Base
class
TriggerRequest
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
belongs_to
:trigger
belongs_to
:trigger
belongs_to
:pipeline
,
foreign_key: :commit_id
belongs_to
:pipeline
,
foreign_key: :commit_id
...
...
app/models/ci/variable.rb
View file @
c295d336
module
Ci
module
Ci
class
Variable
<
ActiveRecord
::
Base
class
Variable
<
ActiveRecord
::
Base
extend
Ci
::
Model
extend
Gitlab
::
Ci
::
Model
include
HasVariable
include
HasVariable
include
Presentable
include
Presentable
...
...
lib/ci/model.rb
deleted
100644 → 0
View file @
f364cc34
module
Ci
module
Model
def
table_name_prefix
"ci_"
end
def
model_name
@model_name
||=
ActiveModel
::
Name
.
new
(
self
,
nil
,
self
.
name
.
split
(
"::"
).
last
)
end
end
end
lib/gitlab/ci/model.rb
0 → 100644
View file @
c295d336
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
)
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