Class: Janky::Views::Console
- Inherits:
-
Layout
- Object
- Mustache
- Layout
- Janky::Views::Console
show all
- Defined in:
- lib/janky/views/console.rb
Instance Method Summary
collapse
Methods inherited from Layout
#page_class, #root, #title
Instance Method Details
#branch_name ⇒ Object
12
13
14
|
# File 'lib/janky/views/console.rb', line 12
def branch_name
@build.branch_name
end
|
#branch_path ⇒ Object
16
17
18
|
# File 'lib/janky/views/console.rb', line 16
def branch_path
"#{repo_path}/#{branch_name}"
end
|
#commit_short_sha ⇒ Object
24
25
26
|
# File 'lib/janky/views/console.rb', line 24
def commit_short_sha
@build.short_sha1
end
|
#commit_url ⇒ Object
20
21
22
|
# File 'lib/janky/views/console.rb', line 20
def commit_url
@build.commit_url
end
|
#jenkins_url ⇒ Object
32
33
34
|
# File 'lib/janky/views/console.rb', line 32
def jenkins_url
@build.url
end
|
#output ⇒ Object
28
29
30
|
# File 'lib/janky/views/console.rb', line 28
def output
@build.output
end
|
#repo_name ⇒ Object
4
5
6
|
# File 'lib/janky/views/console.rb', line 4
def repo_name
@build.repo_name
end
|
#repo_path ⇒ Object
8
9
10
|
# File 'lib/janky/views/console.rb', line 8
def repo_path
"#{root}/#{repo_name}"
end
|