Class: DaggerRuby::GitRef
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
56
57
58
59
60
|
# File 'lib/dagger_ruby/git_repository.rb', line 56
def self.from_id(id, client)
query = QueryBuilder.new("gitRef")
query.load_from_id(id)
new(query, client)
end
|
.root_field_name ⇒ Object
62
63
64
|
# File 'lib/dagger_ruby/git_repository.rb', line 62
def self.root_field_name
"gitRef"
end
|
Instance Method Details
#commit ⇒ Object
66
67
68
|
# File 'lib/dagger_ruby/git_repository.rb', line 66
def commit
get_scalar("commit")
end
|
#ref ⇒ Object
70
71
72
|
# File 'lib/dagger_ruby/git_repository.rb', line 70
def ref
get_scalar("ref")
end
|
#sync ⇒ Object
83
84
85
86
|
# File 'lib/dagger_ruby/git_repository.rb', line 83
def sync
get_scalar("id")
self
end
|
#tree(opts = {}) ⇒ Object
74
75
76
77
78
79
80
81
|
# File 'lib/dagger_ruby/git_repository.rb', line 74
def tree(opts = {})
args = {}
args["path"] = opts[:path] if opts[:path]
args["exclude"] = opts[:exclude] if opts[:exclude]
args["include"] = opts[:include] if opts[:include]
get_object("tree", Directory, args)
end
|