Class: Yarg::Scm::Git
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #commit_commands ⇒ Object
- #init_commands ⇒ Object
-
#initialize(options = {}) ⇒ Git
constructor
A new instance of Git.
- #install_commands(repository, destination) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Git
Returns a new instance of Git.
4 5 6 |
# File 'lib/yarg/scm/git.rb', line 4 def initialize( = {}) super end |
Instance Method Details
#commit_commands ⇒ Object
12 13 14 |
# File 'lib/yarg/scm/git.rb', line 12 def commit_commands ["git add .", "git commit -m 'Initial commit. Yarg!'"] end |
#init_commands ⇒ Object
8 9 10 |
# File 'lib/yarg/scm/git.rb', line 8 def init_commands ["git init"] end |
#install_commands(repository, destination) ⇒ Object
16 17 18 |
# File 'lib/yarg/scm/git.rb', line 16 def install_commands(repository, destination) ["git submodule add #{repository} #{destination}"] end |