module Rummager
Constants
- CNTNR_ARGS_CREATE
Attributes
repo_base[RW]
Public Class Methods
cmd_bashexec(cmdstring)
click to toggle source
# File lib/rummager/util.rb, line 9 def Rummager.cmd_bashexec(cmdstring) { :cmd=> [ "/bin/bash","-c", cmdstring ], } end
cmd_gitcheckout(commithash,srcpath,clonepath)
click to toggle source
# File lib/rummager/util.rb, line 43 def Rummager.cmd_gitcheckout(commithash,srcpath,clonepath) { :cmd => ["/bin/bash","-c", "/usr/bin/git clone --no-checkout #{srcpath} #{clonepath} &&" \ "/usr/bin/git --work-tree #{clonepath} --git-dir #{clonepath}/.git checkout #{commithash}\n" ], } end
cmd_gitclone(branch,srcpath,clonepath)
click to toggle source
# File lib/rummager/util.rb, line 35 def Rummager.cmd_gitclone(branch,srcpath,clonepath) { :cmd => ["/bin/bash","-c", "/usr/bin/git clone --branch #{branch} #{srcpath} #{clonepath}" ], } end
cmd_gitmirror(filepath,giturl)
click to toggle source
# File lib/rummager/util.rb, line 15 def Rummager.cmd_gitmirror(filepath,giturl) { :cmd=> [ "/bin/bash","-c", "if [[ -d #{filepath} ]]; then\n" \ " /usr/bin/git --git-dir=#{filepath} fetch --all\n" \ "else\n" \ " /usr/bin/git clone --mirror #{giturl} #{filepath}\n" \ "fi\n" ], } end
cmd_gitupdate(filepath)
click to toggle source
# File lib/rummager/util.rb, line 27 def Rummager.cmd_gitupdate(filepath) { :cmd=> [ "/bin/bash","-c", "/usr/bin/git --git-dir=#{filepath} fetch --all", ], } end
cmd_shexec(cmdstring)
click to toggle source
# File lib/rummager/util.rb, line 3 def Rummager.cmd_shexec(cmdstring) { :cmd=> [ "/bin/sh","-c", cmdstring ], } end