module Git::Lib
Public Class Methods
clear_cache()
click to toggle source
# File lib/git/lib.rb, line 23 def self.clear_cache Git::Base.command_output('rm', '-r --cached .') end
commit_all(message)
click to toggle source
# File lib/git/lib.rb, line 18 def self.commit_all(message) Git::Base.command_output('add', '-A') Git::Base.command_output('commit', "-m '#{message}'") end
git()
click to toggle source
# File lib/git/lib.rb, line 6 def self.git Git::Base.command_output end
init()
click to toggle source
# File lib/git/lib.rb, line 10 def self.init Git::Base.command_output('init') end
log()
click to toggle source
# File lib/git/lib.rb, line 31 def self.log Git::Base.command_output('log') end
remove_from_cache(path)
click to toggle source
# File lib/git/lib.rb, line 27 def self.remove_from_cache(path) Git::Base.command_output('rm', "-rf --cached #{path}") end
status()
click to toggle source
# File lib/git/lib.rb, line 14 def self.status Git::Base.command_output('status') end