Class: DaggerRuby::GitRepository
Instance Attribute Summary
Attributes inherited from DaggerObject
#client, #query_builder
Class Method Summary
collapse
Instance Method Summary
collapse
#chain_operation, #id, #initialize
Class Method Details
.from_id(id, client) ⇒ Object
7
8
9
10
11
|
# File 'lib/dagger_ruby/git_repository.rb', line 7
def self.from_id(id, client)
query = QueryBuilder.new("gitRepository")
query.load_from_id(id)
new(query, client)
end
|
.root_field_name ⇒ Object
13
14
15
|
# File 'lib/dagger_ruby/git_repository.rb', line 13
def self.root_field_name
"gitRepository"
end
|
Instance Method Details
#branch(name) ⇒ Object
17
18
19
|
# File 'lib/dagger_ruby/git_repository.rb', line 17
def branch(name)
get_object("branch", GitRef, { "name" => name })
end
|
#branches ⇒ Object
33
34
35
|
# File 'lib/dagger_ruby/git_repository.rb', line 33
def branches
get_scalar("branches")
end
|
#commit(id) ⇒ Object
25
26
27
|
# File 'lib/dagger_ruby/git_repository.rb', line 25
def commit(id)
get_object("commit", GitRef, { "id" => id })
end
|
#head ⇒ Object
29
30
31
|
# File 'lib/dagger_ruby/git_repository.rb', line 29
def head
get_object("head", GitRef)
end
|
#sync ⇒ Object
49
50
51
52
|
# File 'lib/dagger_ruby/git_repository.rb', line 49
def sync
get_scalar("id")
self
end
|
#tag(name) ⇒ Object
21
22
23
|
# File 'lib/dagger_ruby/git_repository.rb', line 21
def tag(name)
get_object("tag", GitRef, { "name" => name })
end
|
37
38
39
|
# File 'lib/dagger_ruby/git_repository.rb', line 37
def tags
get_scalar("tags")
end
|
45
46
47
|
# File 'lib/dagger_ruby/git_repository.rb', line 45
def ()
chain_operation("withAuthHeader", { "header" => .is_a?(DaggerObject) ? .id : })
end
|
#with_auth_token(token) ⇒ Object
41
42
43
|
# File 'lib/dagger_ruby/git_repository.rb', line 41
def with_auth_token(token)
chain_operation("withAuthToken", { "token" => token.is_a?(DaggerObject) ? token.id : token })
end
|