Class: Yarg::Scm::Git

Inherits:
Base
  • Object
show all
Defined in:
lib/yarg/scm/git.rb

Instance Attribute Summary

Attributes inherited from Base

#using

Instance Method Summary collapse

Methods inherited from Base

#install

Constructor Details

#initialize(options = {}) ⇒ Git

Returns a new instance of Git.



4
5
6
# File 'lib/yarg/scm/git.rb', line 4

def initialize(options = {})
  super
end

Instance Method Details

#commit_commandsObject



12
13
14
# File 'lib/yarg/scm/git.rb', line 12

def commit_commands
  ["git add .", "git commit -m 'Initial commit. Yarg!'"]
end

#init_commandsObject



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