Class: GitRails::Git::SubModule
- Inherits:
-
Object
- Object
- GitRails::Git::SubModule
- Defined in:
- lib/git-rails/git.rb
Instance Method Summary collapse
Instance Method Details
#add(source_url, dest_path) ⇒ Object
39 40 41 |
# File 'lib/git-rails/git.rb', line 39 def add(source_url, dest_path) ::GitRails::Git::sys('git submodule add', source_url, dest_path) end |
#init ⇒ Object
42 43 44 |
# File 'lib/git-rails/git.rb', line 42 def init ::GitRails::Git::sys('git submodule init') end |
#update(path = '') ⇒ Object
45 46 47 |
# File 'lib/git-rails/git.rb', line 45 def update(path='') ::GitRails::Git::sys('git submodule update') end |