Class: Asgit::Services::GitHub
Instance Attribute Summary
Attributes inherited from Service
#details
Instance Method Summary
collapse
Methods inherited from Service
#initialize, register_as
Instance Method Details
#base_structure ⇒ Object
11
12
13
|
# File 'lib/asgit/services/github.rb', line 11
def base_structure
"%{base_url}/%{organization}/%{project}"
end
|
#base_url ⇒ Object
7
8
9
|
# File 'lib/asgit/services/github.rb', line 7
def base_url
details.base_url || "https://github.com"
end
|
#branch_uri ⇒ Object
19
20
21
|
# File 'lib/asgit/services/github.rb', line 19
def branch_uri
"tree/%{branch}"
end
|
#commit_uri ⇒ Object
15
16
17
|
# File 'lib/asgit/services/github.rb', line 15
def commit_uri
"commit/%{commit}"
end
|
#compare_uri ⇒ Object
31
32
33
|
# File 'lib/asgit/services/github.rb', line 31
def compare_uri
"compare/%{ref_a}...%{ref_b}"
end
|
#file_at_commit_uri ⇒ Object
27
28
29
|
# File 'lib/asgit/services/github.rb', line 27
def file_at_commit_uri
"blob/%{commit}/%{file_path}%{line}"
end
|
#file_uri ⇒ Object
23
24
25
|
# File 'lib/asgit/services/github.rb', line 23
def file_uri
"blob/%{branch}/%{file_path}%{line}"
end
|