Class: Gitabu::Api::V3::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/gitabu/api/v3/git.rb

Overview

Git endpoints.

Class Method Summary collapse

Class Method Details

.create_a_blob(owner: nil, repo: nil, content: nil, encoding: nil, options: nil) ⇒ Object



38
39
40
# File 'lib/gitabu/api/v3/git.rb', line 38

def self.create_a_blob(owner: nil, repo: nil, content: nil, encoding: nil, options: nil)
  new.create_a_blob(owner, repo, content, encoding, options)
end

.create_a_commit(owner: nil, repo: nil, message: nil, tree: nil, parents: nil, author: nil, committer: nil, signature: nil, options: nil) ⇒ Object



46
47
48
# File 'lib/gitabu/api/v3/git.rb', line 46

def self.create_a_commit(owner: nil, repo: nil, message: nil, tree: nil, parents: nil, author: nil, committer: nil, signature: nil, options: nil)
  new.create_a_commit(owner, repo, message, tree, parents, author, committer, signature, options)
end

.create_a_reference(owner: nil, repo: nil, ref: nil, sha: nil, key: nil, options: nil) ⇒ Object



62
63
64
# File 'lib/gitabu/api/v3/git.rb', line 62

def self.create_a_reference(owner: nil, repo: nil, ref: nil, sha: nil, key: nil, options: nil)
  new.create_a_reference(owner, repo, ref, sha, key, options)
end

.create_a_tag_object(owner: nil, repo: nil, tag: nil, message: nil, object: nil, type: nil, tagger: nil, options: nil) ⇒ Object



74
75
76
# File 'lib/gitabu/api/v3/git.rb', line 74

def self.create_a_tag_object(owner: nil, repo: nil, tag: nil, message: nil, object: nil, type: nil, tagger: nil, options: nil)
  new.create_a_tag_object(owner, repo, tag, message, object, type, tagger, options)
end

.create_a_tree(owner: nil, repo: nil, tree: nil, base_tree: nil, options: nil) ⇒ Object



82
83
84
# File 'lib/gitabu/api/v3/git.rb', line 82

def self.create_a_tree(owner: nil, repo: nil, tree: nil, base_tree: nil, options: nil)
  new.create_a_tree(owner, repo, tree, base_tree, options)
end

.delete_a_reference(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object



70
71
72
# File 'lib/gitabu/api/v3/git.rb', line 70

def self.delete_a_reference(owner: nil, repo: nil, ref: nil, options: nil)
  new.delete_a_reference(owner, repo, ref, options)
end

.get_a_blob(owner: nil, repo: nil, file_sha: nil, options: nil) ⇒ Object



42
43
44
# File 'lib/gitabu/api/v3/git.rb', line 42

def self.get_a_blob(owner: nil, repo: nil, file_sha: nil, options: nil)
  new.get_a_blob(owner, repo, file_sha, options)
end

.get_a_commit(owner: nil, repo: nil, commit_sha: nil, options: nil) ⇒ Object



50
51
52
# File 'lib/gitabu/api/v3/git.rb', line 50

def self.get_a_commit(owner: nil, repo: nil, commit_sha: nil, options: nil)
  new.get_a_commit(owner, repo, commit_sha, options)
end

.get_a_reference(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object



58
59
60
# File 'lib/gitabu/api/v3/git.rb', line 58

def self.get_a_reference(owner: nil, repo: nil, ref: nil, options: nil)
  new.get_a_reference(owner, repo, ref, options)
end

.get_a_tag(owner: nil, repo: nil, tag_sha: nil, options: nil) ⇒ Object



78
79
80
# File 'lib/gitabu/api/v3/git.rb', line 78

def self.get_a_tag(owner: nil, repo: nil, tag_sha: nil, options: nil)
  new.get_a_tag(owner, repo, tag_sha, options)
end

.get_a_tree(owner: nil, repo: nil, tree_sha: nil, options: nil) ⇒ Object



86
87
88
# File 'lib/gitabu/api/v3/git.rb', line 86

def self.get_a_tree(owner: nil, repo: nil, tree_sha: nil, options: nil)
  new.get_a_tree(owner, repo, tree_sha, options)
end

.list_matching_references(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object



54
55
56
# File 'lib/gitabu/api/v3/git.rb', line 54

def self.list_matching_references(owner: nil, repo: nil, ref: nil, options: nil)
  new.list_matching_references(owner, repo, ref, options)
end

.update_a_reference(owner: nil, repo: nil, ref: nil, sha: nil, force: nil, options: nil) ⇒ Object



66
67
68
# File 'lib/gitabu/api/v3/git.rb', line 66

def self.update_a_reference(owner: nil, repo: nil, ref: nil, sha: nil, force: nil, options: nil)
  new.update_a_reference(owner, repo, ref, sha, force, options)
end