Class: Janky::Views::Console

Inherits:
Layout
  • Object
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_nameObject



12
13
14
# File 'lib/janky/views/console.rb', line 12

def branch_name
  @build.branch_name
end

#branch_pathObject



16
17
18
# File 'lib/janky/views/console.rb', line 16

def branch_path
  "#{repo_path}/#{branch_name}"
end

#commit_short_shaObject



24
25
26
# File 'lib/janky/views/console.rb', line 24

def commit_short_sha
  @build.short_sha1
end

#commit_urlObject



20
21
22
# File 'lib/janky/views/console.rb', line 20

def commit_url
  @build.commit_url
end

#jenkins_urlObject



32
33
34
# File 'lib/janky/views/console.rb', line 32

def jenkins_url
  @build.url
end

#outputObject



28
29
30
# File 'lib/janky/views/console.rb', line 28

def output
  @build.output
end

#repo_nameObject



4
5
6
# File 'lib/janky/views/console.rb', line 4

def repo_name
  @build.repo_name
end

#repo_pathObject



8
9
10
# File 'lib/janky/views/console.rb', line 8

def repo_path
  "#{root}/#{repo_name}"
end