Class: Gitomator::Service::Git

Inherits:
BaseService show all
Defined in:
lib/gitomator/service/git.rb

Instance Attribute Summary

Attributes inherited from BaseService

#provider

Instance Method Summary collapse

Methods inherited from BaseService

#after_each_service_call, #before_each_service_call, #on_service_call_error, #service_call

Constructor Details

#initialize(provider, opts = {}) ⇒ Git

Returns a new instance of Git.



8
9
10
# File 'lib/gitomator/service/git.rb', line 8

def initialize(provider, opts = {})
  super(provider, opts)
end

Instance Method Details

#add(local_repo_root, path, opts = {}) ⇒ Object



22
23
24
# File 'lib/gitomator/service/git.rb', line 22

def add(local_repo_root, path, opts={})
  service_call(__callee__, local_repo_root, path, opts)
end

#checkout(local_repo_root, branch, opts = {}) ⇒ Object



30
31
32
# File 'lib/gitomator/service/git.rb', line 30

def checkout(local_repo_root, branch, opts={})
  service_call(__callee__, local_repo_root, branch, opts)
end

#clone(repo_url, local_repo_root, opts = {}) ⇒ Object




14
15
16
# File 'lib/gitomator/service/git.rb', line 14

def clone(repo_url, local_repo_root, opts={})
  service_call(__callee__, repo_url, local_repo_root, opts)
end

#command(local_repo_root, command) ⇒ Object



42
43
44
# File 'lib/gitomator/service/git.rb', line 42

def command(local_repo_root, command)
  service_call(__callee__, local_repo_root, command)
end

#commit(local_repo_root, message, opts = {}) ⇒ Object



26
27
28
# File 'lib/gitomator/service/git.rb', line 26

def commit(local_repo_root, message, opts={})
  service_call(__callee__, local_repo_root, message, opts)
end

#init(local_repo_root, opts = {}) ⇒ Object



18
19
20
# File 'lib/gitomator/service/git.rb', line 18

def init(local_repo_root, opts={})
  service_call(__callee__, local_repo_root, opts)
end

#push(local_repo_root, remote, opts = {}) ⇒ Object



38
39
40
# File 'lib/gitomator/service/git.rb', line 38

def push(local_repo_root, remote, opts={})
  service_call(__callee__, local_repo_root, remote, opts)
end

#set_remote(local_repo_root, remote, url, opts = {}) ⇒ Object



34
35
36
# File 'lib/gitomator/service/git.rb', line 34

def set_remote(local_repo_root, remote, url, opts={})
  service_call(__callee__, local_repo_root, remote, url, opts)
end