Module: Rip::Sh::Git

Extended by:
Git
Included in:
GitPackage, Git
Defined in:
lib/rip/sh/git.rb

Instance Method Summary collapse

Instance Method Details

#git_cat_file(object) ⇒ Object



34
35
36
# File 'lib/rip/sh/git.rb', line 34

def git_cat_file(object)
  `git cat-file -p #{object} 2> /dev/null`
end

#git_clone(source, cache_name) ⇒ Object



10
11
12
# File 'lib/rip/sh/git.rb', line 10

def git_clone(source, cache_name)
  `git clone #{source} #{cache_name}`
end

#git_fetch(remote) ⇒ Object



14
15
16
# File 'lib/rip/sh/git.rb', line 14

def git_fetch(remote)
  `git fetch #{remote}`
end

#git_ls_remote(source, version = nil) ⇒ Object



6
7
8
# File 'lib/rip/sh/git.rb', line 6

def git_ls_remote(source, version = nil)
  `git ls-remote #{source} #{version} 2> /dev/null`
end

#git_reset_hard(version) ⇒ Object



18
19
20
# File 'lib/rip/sh/git.rb', line 18

def git_reset_hard(version)
  `git reset --hard #{version}`
end

#git_rev_parse(repothing) ⇒ Object



30
31
32
# File 'lib/rip/sh/git.rb', line 30

def git_rev_parse(repothing)
  `git rev-parse #{repothing}`
end

#git_submodule_initObject



22
23
24
# File 'lib/rip/sh/git.rb', line 22

def git_submodule_init
  `git submodule init`
end

#git_submodule_updateObject



26
27
28
# File 'lib/rip/sh/git.rb', line 26

def git_submodule_update
  `git submodule update`
end