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
Tatuya Kamada
gitlab-ce
Commits
7f2f683e
Commit
7f2f683e
authored
Jun 06, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename ci config module that holds nodes to Node
parent
6609589b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
5 deletions
+24
-5
lib/gitlab/ci/config/node/before_script.rb
lib/gitlab/ci/config/node/before_script.rb
+2
-2
lib/gitlab/ci/config/node/entry.rb
lib/gitlab/ci/config/node/entry.rb
+6
-2
lib/gitlab/ci/config/node/global.rb
lib/gitlab/ci/config/node/global.rb
+10
-0
spec/lib/gitlab/ci/config/node/before_script_spec.rb
spec/lib/gitlab/ci/config/node/before_script_spec.rb
+1
-1
spec/lib/gitlab/ci/config/node/global_spec.rb
spec/lib/gitlab/ci/config/node/global_spec.rb
+5
-0
No files found.
lib/gitlab/ci/config/
entry
/before_script.rb
→
lib/gitlab/ci/config/
node
/before_script.rb
View file @
7f2f683e
module
Gitlab
module
Ci
class
Config
module
Entry
class
BeforeScript
<
Base
Entry
module
Node
class
BeforeScript
<
Entry
def
leaf?
true
end
...
...
lib/gitlab/ci/config/
entry/base_
entry.rb
→
lib/gitlab/ci/config/
node/
entry.rb
View file @
7f2f683e
module
Gitlab
module
Ci
class
Config
module
Entry
class
Base
Entry
module
Node
class
Entry
def
initialize
(
hash
,
config
,
parent
=
nil
)
@hash
=
hash
@config
=
config
@parent
=
parent
end
def
allowed_keys
[]
end
end
end
end
...
...
lib/gitlab/ci/config/
entry
/global.rb
→
lib/gitlab/ci/config/
node
/global.rb
View file @
7f2f683e
module
Gitlab
module
Ci
class
Config
module
Entry
class
Global
<
BaseEntry
def
allowed_keys
[]
end
module
Node
class
Global
<
Entry
end
end
end
...
...
spec/lib/gitlab/ci/config/
entry
/before_script_spec.rb
→
spec/lib/gitlab/ci/config/
node
/before_script_spec.rb
View file @
7f2f683e
require
'spec_helper'
describe
Gitlab
::
Ci
::
Config
::
Entry
::
BeforeScript
do
describe
Gitlab
::
Ci
::
Config
::
Node
::
BeforeScript
do
let
(
:entry
)
{
described_class
.
new
(
hash
,
config
)
}
describe
'#leaf?'
do
...
...
spec/lib/gitlab/ci/config/
entry
/global_spec.rb
→
spec/lib/gitlab/ci/config/
node
/global_spec.rb
View file @
7f2f683e
require
'spec_helper'
describe
Gitlab
::
Ci
::
Config
::
Entry
::
Global
do
describe
Gitlab
::
Ci
::
Config
::
Node
::
Global
do
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