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
1
Merge Requests
1
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
nexedi
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
Show 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
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
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