Module: Git::Lib
- Defined in:
- lib/git/lib.rb
Class Method Summary collapse
- .clear_cache ⇒ Object
- .commit_all(message) ⇒ Object
- .git ⇒ Object
- .init ⇒ Object
- .log ⇒ Object
- .remove_from_cache(path) ⇒ Object
- .status ⇒ Object
Class Method Details
.clear_cache ⇒ Object
23 24 25 |
# File 'lib/git/lib.rb', line 23 def self.clear_cache Git::Base.command_output('rm', '-r --cached .') end |
.commit_all(message) ⇒ Object
18 19 20 21 |
# File 'lib/git/lib.rb', line 18 def self.commit_all() Git::Base.command_output('add', '-A') Git::Base.command_output('commit', "-m '#{message}'") end |
.git ⇒ Object
6 7 8 |
# File 'lib/git/lib.rb', line 6 def self.git Git::Base.command_output end |
.init ⇒ Object
10 11 12 |
# File 'lib/git/lib.rb', line 10 def self.init Git::Base.command_output('init') end |
.log ⇒ Object
31 32 33 |
# File 'lib/git/lib.rb', line 31 def self.log Git::Base.command_output('log') end |
.remove_from_cache(path) ⇒ Object
27 28 29 |
# File 'lib/git/lib.rb', line 27 def self.remove_from_cache(path) Git::Base.command_output('rm', "-rf --cached #{path}") end |
.status ⇒ Object
14 15 16 |
# File 'lib/git/lib.rb', line 14 def self.status Git::Base.command_output('status') end |